chemometrics.mcr.constraint.Nonneg

class chemometrics.mcr.constraint.Nonneg(copy=False)

Bases: chemometrics.mcr._constraint.Constraint

Non-negativity constraint. All negative entries made 0.

The non-negativity constraint is typically used if a negative result would be unphysical or at least highly unlikely. Typical examples: absolute concentrations, absorption spectra.

Parameters

copy (bool) – Make copy of input data, A; otherwise, overwrite (if mutable)

__init__(copy=False)

A must be non-negative

Methods

__init__([copy])

A must be non-negative

transform(A)

Apply nonnegative constraint

transform(A)

Apply nonnegative constraint