get_gaussian1d

Contents

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 (float or numpy.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 at xx, of shape (n, nx) (n = 1 for a scalar sigma).