gauss#
- atompy.gauss(x, scale='pdf', mu=0.0, sigma=1.0)[source]#
Gaussian function.
- Parameters:
- xarray_like
x-values where the Gaussian will be evaluated.
- scalearray_like or
str The scale of the Gaussian.
If a string, must be one of the following:
- “pdf”
Return probability density function of a normal distribution.
- “integral”
Return Gaussian normalized to the integral within the x-range. x must be equally spaced.
- “sum”
Return Gaussian normalized to the sum of all y-values.
- “max”
Return Gaussian normalized to 1.
- muarray_like, default 0.0
Mean or expectation value of the Gaussian.
- sigmaarray_like, default 1.0
Variance of the Gaussian.
- Returns:
Examples
(
Source code,png,hires.png,pdf)