chemometrics.mcr.constraint.Unimodal

class chemometrics.mcr.constraint.Unimodal(copy=False, columns=None)

Bases: Constraint

Enforce column-wise unimodality of data.

The constraint ensures that one value per column represents a maximum while values before the maximum increase monotonically, values after the maximum decrease monotonically. The constraint is useful for e.g. chromatographic data where typically unimodal peaks are observed.

Parameters
  • copy (bool) – Make copy of input data, A; otherwise, overwrite (if mutable). default: False

  • columns (None (default) or list) – Which columns of input matrix A to apply unimodality across.

__init__(copy=False, columns=None)

Methods

__init__([copy, columns])

transform(A)

Apply unimodal constraint to A

transform(A)

Apply unimodal constraint to A