chemometrics.mcr.constraint.CompressBelow¶
- class chemometrics.mcr.constraint.CompressBelow(value=0, copy=False)¶
Bases:
Constraint
Compress values below (and not-equal to) a certain threshold
The constraint sets all values which are smaller than the threshold value to the threshold value.
- Parameters
value (float) – Cutoff value
copy (bool) – Make copy of input data, A; otherwise, overwrite (if mutable)
- __init__(value=0, copy=False)¶
Methods
__init__
([value, copy])transform
(A)Apply compress-below value constraint
- transform(A)¶
Apply compress-below value constraint