ktk.cycles.stack

Contents

ktk.cycles.stack#

stack(ts, *, n_points=100)[source]#

Stack time-normalized TimeSeries’ data into a dict of arrays.

This methods returns the data of a time-normalized TimeSeries as a dict where each key corresponds to a TimeSeries’ data key, and contains a numpy array where the first dimension is the cycle, the second dimension is the percentage of cycle, and the other dimensions are the data itself.

Parameters:
  • ts (TimeSeries) – The time-normalized TimeSeries.

  • n_points (int) – Optional. The number of points the TimeSeries has been time-normalized on.

Return type:

dict[str, np.ndarray]