ramanspy.preprocessing.normalise.MinMax

class ramanspy.preprocessing.normalise.MinMax(*, pixelwise: bool = True, a: Number = 0, b: Number = 1)[source]

Min-max normalisation.

Scales the data to the interval [a, b].

\[x = (a + (x-min(x))*(b-a))/(max(x) - min(x))\]
Parameters:
  • pixelwise (bool) – If True (default), method is applied to each spectrum individually. If False, the global minimum and maximum is used.

  • a (Number, optional, default=0) –

  • b (Number, optional, default=1) –

__init__(*, pixelwise: bool = True, a: Number = 0, b: Number = 1)[source]

Methods

__init__(*[, pixelwise, a, b])

apply(raman_objects)

Applies the defined preprocessing method on the Raman spectroscopic objects provided.