Generate a generic 2-D Gaussian on an n x n grid over [-1, 1]^2 and return the array exp(-((X-mu)^2 + (Y-mu)^2) / (2*sigma^2)).
n x n
[-1, 1]^2
exp(-((X-mu)^2 + (Y-mu)^2) / (2*sigma^2))
Input
n = 10, sigma = 1.0, mu = 0.0
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)