SpectralShapeGaussian
- class glotaran.builtin.megacomplexes.spectral.shape.SpectralShapeGaussian(*, label: str, type: str = 'gaussian', amplitude: Parameter | str | None = None, location: Parameter | str, width: Parameter | str)[source]
Bases:
SpectralShape
A Gaussian spectral shape
Method generated by attrs for class SpectralShapeGaussian.
Attributes Summary
Methods Summary
Calculate a normal Gaussian shape for a given
axis
.Get the type string.
Get the type for a type string.
Get all type strings.
Methods Documentation
- calculate(axis: ndarray) ndarray [source]
Calculate a normal Gaussian shape for a given
axis
.The following equation is used for the calculation:
The parameters of the equation represent the following attributes of the shape:
:
axis
:
amplitude
:
location
:
width
In this formalism, represents the full width at half maximum (FWHM). Compared to the more common definition we have
- Parameters:
axis (np.ndarray) – The axis to calculate the shape for.
- Returns:
An array representing a Gaussian shape.
- Return type:
np.ndarray