SpectralShapeSkewedGaussian
- class glotaran.builtin.megacomplexes.spectral.shape.SpectralShapeSkewedGaussian(*, label: str, amplitude: Parameter | str | None = None, location: Parameter | str, width: Parameter | str, type: str = 'skewed-gaussian', skewness: Parameter | str)[source]
Bases:
SpectralShapeGaussian
A skewed Gaussian spectral shape
Method generated by attrs for class SpectralShapeSkewedGaussian.
Attributes Summary
Methods Summary
Calculate the skewed Gaussian shape for
axis
.Get the type string.
Get the type for a type string.
Get all type strings.
Methods Documentation
- calculate(axis: ndarray) ndarray [source]
Calculate the skewed Gaussian shape for
axis
.The following equation is used for the calculation:
With:
The parameters of the equation represent the following attributes of the shape:
:
axis
:
amplitude
:
location
:
width
:
skewness
Where represents the full width at half maximum (FWHM), see
calculate_gaussian()
.Note that in the limit of skewness parameter equal to zero simplifies to a normal gaussian (since ), see the definition in
SpectralShapeGaussian.calculate()
.- Parameters:
axis (np.ndarray) – The axis to calculate the shape for.
- Returns:
An array representing a skewed Gaussian shape.
- Return type:
np.ndarray
- classmethod get_item_type_class(item_type: str) Type
Get the type for a type string.
- Parameters:
item_type (str) – The type string.
- Return type:
Type
- location: ParameterType
- width: ParameterType