spectrochempy.analysis.constraints.ReferenceProfileο
- class ReferenceProfile(profile, component, data)[source]ο
Reference-profile constraint.
States that a selected component profile must remain close to a known reference (e.g. a measured kinetic trace for concentrations, or a pure-component spectrum measured independently). The actual enforcement (projection vs. regularised least squares) is chosen by the engine; this object only carries the intent.
- Parameters:
profile (str) β Must be
"C"(concentrations) or"St"(spectra).component (int) β Index of the component the reference applies to.
data (array-like) β The reference profile, as a 1-D array-like.
Examples
>>> from spectrochempy import ReferenceProfile >>> ReferenceProfile("C", component=0, data=[0.1, 0.2, 0.7, 0.5]) ReferenceProfile(profile='C', component=0, data=[0.1, 0.2, 0.7, 0.5]) >>> ReferenceProfile("St", component=1, data=[0.1, 0.9, 0.5, 0.2]) ReferenceProfile(profile='St', component=1, data=[0.1, 0.9, 0.5, 0.2])
Attributes Summary
Index of the component the reference applies to.
The reference profile (1-D).
Short human-readable name of the constraint family.
Canonical profile identifier (
"C"or"St").Attributes Documentation
- dataο
The reference profile (1-D).
- Type:
array-like
Examples using spectrochempy.analysis.constraints.ReferenceProfile