Skip to content

NestedIntervalsIterable #

Bases: object

__iter__() #

Implement iter(self).

__len__() #

Return len(self).

__repr__() #

Return repr(self).

collect() #

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

Returns:

Type Description
list[list[NDArray[int64]]]

NumPy NDArray of intervals per nested history.

flatten() #

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

Returns:

Type Description
NDArray[int64]

NumPy NDArray of intervals.

flattened_list() #

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

Returns:

Type Description
list[int]

List of intervals.

to_list() #

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

Returns:

Type Description
list[list[list[int]]]

List of intervals per nested history.