timeSequenceNormalisation#
- pyCGM2.Math.normalisation.timeSequenceNormalisation(Nrow: int, data: ndarray) ndarray#
- Normalise a given data array to have a specified number of rows through linear interpolation. - This function is useful for normalising time series data to a standard length, regardless of the original number of data points. It linearly interpolates the original data to fit into an array with the desired number of rows. - Parameters:
- Nrow (int) – Target number of rows for the normalised array. 
- data (np.ndarray) – Original data array to be normalised. Can be a 1D or 2D array. 
 
- Returns:
- np.ndarray – Normalised array with ‘Nrow’ rows. If the input is a 1D array, the output will also be 1D. 
 
