tropea_clustering.helpers.reshape_from_nt

tropea_clustering.helpers.reshape_from_nt(input_data, tau_window)[source]

Reshapes the input data from traditional from scikit format.

Takes the data array in the (n_particles, n_frames) format and reshapes it in the format required by scikit-learn.

Parameters:
  • input_data (np.ndarray of shape (n_particles, n_frames)) – The raw data in the traditional shape.

  • tau_window (int) – Length of the signal window - the analysis time resolution.

Returns:

reshaped_data – The raw data in the scikit-required shape.

Return type:

np.ndarray of shape (n_particles * n_windows, tau_window)