chemometrics.mcr.constraint.CumsumNonneg¶
- class chemometrics.mcr.constraint.CumsumNonneg(axis=1, copy=False)¶
Bases:
Constraint
Cumulative-Summation non-negativity constraint
The CumSumNonneg constraint enforces the cumulative sum over the data to always be positive. This is useful for processing first derivative data if for the non-derived data negative entries would be unphysical or at least highly unlikely. Typical example: first derivative of an absorption spectra
- Parameters
copy (bool) – Make copy of input data, A; otherwise, overwrite (if mutable)
- __init__(axis=1, copy=False)¶
A must be non-negative
Methods
__init__
([axis, copy])A must be non-negative
transform
(A)Apply cumsum nonnegative constraint
- transform(A)¶
Apply cumsum nonnegative constraint