Generate a generic 2-D Gaussian and return the array exp(-((X-mu)² + (Y-mu)²) / (2σ²)):
exp(-((X-mu)² + (Y-mu)²) / (2σ²))
[-1, 1]²
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(...)