SpectralShapeZero¶
- class glotaran.builtin.models.spectral.shape.SpectralShapeZero[source]¶
Bases:
object
A constant spectral shape with value 0
Attributes Summary
Methods Summary
calculate calculates the shape.
Returns a copy of the {cls._name} instance with all members which are Parameters are replaced by the value of the corresponding parameter in the parameter group.
Methods Documentation
- calculate(axis: numpy.ndarray) → numpy.ndarray[source]¶
calculate calculates the shape.
Only works after calling
fill
.- Parameters
axis (np.ndarray) – The axis to calculate the shape on.
- Returns
shape
- Return type
- fill(model: Model, parameters: ParameterGroup) → cls¶
Returns a copy of the {cls._name} instance with all members which are Parameters are replaced by the value of the corresponding parameter in the parameter group.
- Parameters
model – A glotaran model.
parameter (ParameterGroup) – The parameter group to fill from.
- property label: str¶
- property type: str¶