Skip to main content

normalize

Function normalize 

Source
pub fn normalize(data: &mut Array2<f64>) -> Result<()>
Expand description

Z-score normalise a (T, C) raw sensor array in-place.

data must have shape [T, NUM_CHANNELS]. The function normalises along the channel axis using population statistics from NORM_PARAMS.

§Errors

Returns SensorLMError::ShapeMismatch if the number of columns ≠ NUM_CHANNELS.