Skip to content

IntervalsIterable #

Bases: object

__iter__() #

Implement iter(self).

__len__() #

Return len(self).

__repr__() #

Return repr(self).

collect() #

Collect intervals between each history's consecutive timestamps in milliseconds into a NumPy array.

Returns:

Type Description
list[NDArray[int64]]

NumPy NDArray of intervals per history.

to_list() #

Collect intervals between each history's consecutive timestamps in milliseconds into a list.

Returns:

Type Description
list[list[int]]

List of intervals per history.