spectrochempy.analysis.constraints.Selectivityο
- class Selectivity(profile, region, component)[source]ο
Selectivity constraint.
States that each selected component is the only one present on a given region of the constrained axis. This encodes the unimodality-of-presence assumption used in many hard-modeling workflows (e.g. one species dominates a portion of the elution window).
- Parameters:
profile (str) β
"C"(concentrations) or"St"(spectra).region (tuple[int, int]) β
(start, stop)of the half-open region on which the constraint applies.stopmust be strictly greater thanstart.component (int) β Index of the single component that must be the sole component on the region.
Examples
>>> from spectrochempy import Selectivity >>> Selectivity("C", region=(0, 5), component=0) Selectivity(profile='C', region=(0, 5), component=0)
Attributes Summary
Index of the sole component present on the region.
Short human-readable name of the constraint family.
Canonical profile identifier (
"C"or"St").Half-open
(start, stop)region.Attributes Documentation
Examples using spectrochempy.analysis.constraints.Selectivity