aspsim.diagnostics.core.IntervalCounter

class aspsim.diagnostics.core.IntervalCounter(intervals, num_values=None)

Bases: object

intervals is an iterable or iterator where each entry is a tuple or list of length 2, with start (inclusive) and end (exclusive) points of each interval np.ndarray of shape (num_intervals, 2) is also valid

It is assumed that the intervals are strictly increasing, with no overlap. meaning that ivs[i+1][0]>ivs[i][1] for all i.

__init__(intervals, num_values=None)

intervals is an iterable or iterator where each entry is a tuple or list of length 2, with start (inclusive) and end (exclusive) points of each interval np.ndarray of shape (num_intervals, 2) is also valid

It is assumed that the intervals are strictly increasing, with no overlap. meaning that ivs[i+1][0]>ivs[i][1] for all i.

Methods

__init__(intervals[, num_values])

intervals is an iterable or iterator where each entry is a tuple or list of length 2, with start (inclusive) and end (exclusive) points of each interval np.ndarray of shape (num_intervals, 2) is also valid

from_frequency(frequency, max_value[, ...])

progress(progress_until)

upcoming()