spectrochempy.analysis.constraints.NonNegative
- class NonNegative(profile, components=None)[source]
Non-negativity constraint.
States that the selected components of a profile must remain non-negative. This is the most common MCR-ALS constraint for both concentrations (positive absorptivities / amounts) and spectra (positive absorptivities).
- Parameters:
profile (str) –
"C"(concentrations) or"St"(spectra).components (list[int], optional) – Component indices to which the constraint applies.
None(default) means “all components”.
Examples
>>> from spectrochempy import NonNegative >>> NonNegative("C") NonNegative(profile='C', components=None) >>> NonNegative("St", components=[0, 2]) NonNegative(profile='St', components=[0, 2])
Attributes Summary
Component selection (
Nonemeans "all").Short human-readable name of the constraint family.
Canonical profile identifier (
"C"or"St").Attributes Documentation
Examples using spectrochempy.analysis.constraints.NonNegative