tpat2ell#
- peccary.utils.tpat2ell(tpat, dt, n=5, returnInt=True)[source]#
Convert pattern timescale to sampling interval
- Parameters:
- tpatfloat or ndarray
Pattern timescale
- dtfloat
Timestep or timeseries resolution
- nint, optional
Sampling size, by default 5
- returnIntboolean, optional
Return integer or
- Returns:
- int, list of int, or ndarray
Equivalent sampling interval(s); returns int if tpat is a single value, list of ints if tpat is array/list, and ndarray if tpat is array/list and returnInt is set to False