specparam.modes.funcs.gamma_function¶
- specparam.modes.funcs.gamma_function(xs, *params)[source]¶
Gamma fitting function.
- Parameters:
- xs1d array
Input x-axis values.
- *paramsfloat
Parameters that define a gamma function. Each gamma peak has 4 parameters: ctr, hgt, shape (shp), scale (scl).
- Returns:
- ys1d array
Output values for gamma function.
Notes
Defines a gamma fit function as:
P(F)_n = a * frac{1}{Gamma (s)theta^{s}}(F-c)^{s-1}e^{-frac{F-c}{theta}}
where s is the shape parameter and theta is the scale parameter.