spectrochempy.analysis.constraints.NonNegative

class NonNegative(profile, components=None, blocks=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

blocks

Block indices for augmented data (None means all blocks).

components

Component selection (None means "all").

name

Short human-readable name of the constraint family.

profile

Canonical profile identifier ("C" or "St").

Attributes Documentation

blocks

Block indices for augmented data (None means all blocks).

Type

list[int] or None

components

Component selection (None means “all”).

Type

list[int] or None

name

Short human-readable name of the constraint family.

Type

str

profile

Canonical profile identifier ("C" or "St").

Type

str

Examples using spectrochempy.analysis.constraints.NonNegative