get_gaussian1d#
- get_gaussian1d(xx, sigma, mean=0)[source]#
Evaluate a normalized 1D Gaussian at given points.
- Parameters:
xx (
numpy.ndarray) – Points at which to evaluate the Gaussian, of shape(nx,).sigma (
floatornumpy.ndarray) – Standard deviation(s) of the Gaussian: a scalar, or an array of shape(n,)for multiple Gaussians.mean (
float, optional) – Mean of the Gaussian. Default is 0.
- Returns:
numpy.ndarray– Probability density atxx, of shape(n, nx)(n = 1for a scalarsigma).