Skip to main content

sampling_stride

observations.sampling_stride(period, dt, *, label='period')

Validate a positive sampling period and return its integer stride.

Parameters

Name Type Description Default
period Requested output period. required
dt Receiving input interval, in the same units as period. required
label Name used in validation errors. 'period'

Returns

Name Type Description
int period / dt after validating that the ratio is a positive integer.