make_gaussian_pokes
- hcipy.mode_basis.make_gaussian_pokes(grid, mu, sigma, cutoff=5)
Make a basis of Gaussians.
- Parameters:
- gridGrid or None
The grid on which to calculate the mode basis. If this is None, a list of Field generators will be returned instead of a mode basis.
- muGrid
The centers for each of the Gaussians.
- sigmandarray or scalar
The standard deviation of each of the Gaussians. If this is a scalar, this value will be used for all Gaussians.
- cutoffscalar or None
The factor of sigma beyond which the Gaussian will be set to zero. The ModeBasis will be sparse to reduce memory usage. If the cutoff is None, there will be no cutoff, and the returned ModeBasis will be dense.
- Returns:
- ModeBasis or list of Field generators.
The sparse mode basis. If cutoff is None, a dense mode basis will be returned.