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. IfFalse, the global minimum and maximum is used.a (Number, optional, default=0) –
b (Number, optional, default=1) –
Methods
__init__(*[, pixelwise, a, b])apply(raman_objects)Applies the defined preprocessing method on the Raman spectroscopic objects provided.