chemometrics.mcr.constraint¶
McrAR constraints
All classes need a transform method. Note, unlike sklearn, transform can copy or overwrite input depending on copy attribute.
Classes
|
Compress values above (and not-equal to) a certain threshold (set to value) |
|
Compress values below (and not-equal to) a certain threshold |
|
Abstract class for constraints |
|
Cumulative-Summation non-negativity constraint |
|
Cut values above (and not-equal to) a certain threshold |
|
Cut values below (and not-equal to) a certain threshold. |
|
Non-negativity constraint. |
|
Normalization constraint. |
|
Samples that sum-to-zero across axis are replaced with a vector of 0's except for a 1 at feature if a single value. |
|
Enforce certain points in cumulative sum to be near-zero. |
|
Enforce the endpoints to be zero |