[SciPy-user] Creating a 2D matrix with a gausian hump?

James Carroll mrmaple at gmail.com
Thu Jun 22 09:37:20 EDT 2006


Hi,

What's a good way to create a 2d gaussian kernel with numpy?

I'm trying to create a 9x9 matrix with 1.0 in the center, and 0.0 in
the corners, and a gaussian distribution from the center out.

Thanks,
-Jim




More information about the SciPy-User mailing list