SEC.Models.Simple#
SEC/Models/Simple.py
- gaussian(x, A, mu, sigma)#
The Gaussian function.
- Parameters:
x (float or array-like) – The input value(s).
A (float) – The amplitude of the Gaussian.
mu (float) – The mean of the Gaussian.
sigma (float) – The standard deviation of the Gaussian.
- Returns:
The computed Gaussian value(s).
- Return type:
float or array-like
- egh(x, H, tR, sigma, tau)#
The exponential-Gaussian hybrid (EGH) function.
See also: Exponential-Gaussian Hybrid.
- Parameters:
x (float or array-like) – The input value(s).
H (float) – The height parameter.
tR (float) – The retention time parameter.
sigma (float) – The standard deviation of the Gaussian component.
tau (float) – The decay constant of the exponential component.
- Returns:
The computed EGH value(s).
- Return type:
float or array-like
- e0 = poly1d([ 0.827797, -4.173753, 9.123978, -11.34291 , 9.232834, -6.293724, 4. ])#
e0(th) = a0 + a1*th + a2*th**2 + … + am*th**m
- egh_var(sigma, tau)#
Returns the variance of the EGH distribution.
- Parameters:
sigma (float) – The standard deviation of the Gaussian component.
tau (float) – The decay constant of the exponential component.
- Returns:
The variance of the EGH distribution.
- Return type:
float
- egh_std(sigma, tau)#
Returns the standard deviation for the EGH distribution.
- Parameters:
sigma (float) – The standard deviation of the Gaussian component.
tau (float) – The decay constant of the exponential component.
- Returns:
The standard deviation for the EGH distribution.
- Return type:
float
- egh_pdf(x, tR=0, sigma=1.0, tau=0.0, scale=1)#
The probability density function (PDF) of the EGH distribution.
- Parameters:
x (float or array-like) – The input value(s).
tR (float, optional) – The retention time parameter, by default 0.
sigma (float, optional) – The standard deviation of the Gaussian component, by default 1.0.
tau (float, optional) – The decay constant of the exponential component, by default 0.0.
scale (float, optional) – The scaling factor, by default 1.
- Returns:
The computed PDF value(s).
- Return type:
float or array-like