| |
- c_to_ms(cycles: float) -> float
- Convert cycles to milliseconds
:param cycles: cycles
:return: milliseconds
- ms_to_c(duration_ms: float) -> float
- Convert a duration in milliseconds to cycles.
:param duration_ms: milliseconds
:return: cycles
- ms_to_samples(duration_ms: float) -> float
- Convert a duration in milliseconds to cycles.
:param duration_ms: milliseconds
:return: Number of samples over that duration
- samples_to_ms(samples: float) -> float
- Convert a given number of samples to milliseconds.
:param samples: Number of samples.
:return: Milliseconds computed from number of samples.
- segment(array: numpy.ndarray, delta: float) -> List[numpy.ndarray]
- Segments an array by splitting the array into stable segments and throwing away "changing" segments.
:param array: An array.
:param delta: The segmentation threshold.
:return: A list of segmented arrays where each segment is a stable segment.
|