ertk.utils.clip_arrays
- ertk.utils.clip_arrays(arrays: List[ndarray], length: int, copy: bool) List[ndarray]
- ertk.utils.clip_arrays(arrays: ndarray, length: int, copy: bool) ndarray
Clips each array to the specified maximum sequence length.
- Parameters:
- arrays: list of np.ndarray
The arrays to process. Assumes axis 0 of each sub-array, or axis 1 of
arrays, is the time axis.- length: int
The maximum length.
- Returns:
- clipped_arrays:
Clipped arrays.