pybaselines.utils.gaussian
- pybaselines.utils.gaussian(x, height=1.0, center=0.0, sigma=1.0)[source]
Generates a Gaussian distribution based on height, center, and sigma.
- Parameters:
- x
numpy.ndarray The x-values at which to evaluate the distribution.
- height
float, optional The maximum height of the distribution. Default is 1.0.
- center
float, optional The center of the distribution. Default is 0.0.
- sigma
float, optional The standard deviation of the distribution. Default is 1.0.
- x
- Returns:
numpy.ndarrayThe Gaussian distribution evaluated with x.
- Raises:
ValueErrorRaised if sigma is not greater than 0.