chemometrics.mcr.constraint.CompressAbove¶
- class chemometrics.mcr.constraint.CompressAbove(value=0, copy=False)¶
Bases:
chemometrics.mcr._constraint.Constraint
Compress values above (and not-equal to) a certain threshold (set to value)
The constraint sets all values which are larger 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-above value constraint
- transform(A)¶
Apply compress-above value constraint