mushi.histories.History
- class History(change_points, vals)[source]
Bases:
object
Base class piecewise constant history. The first epoch starts at zero, and the last epoch extends to infinity.
- Parameters
change_points (
array
) – epoch change points (times)vals (
ndarray
) – constant values for each epoch (rows)
Methods
Return time grid and values in each cell.
Test if time grid is the same as another instance.
Generator yielding epochs as tuples: (start_time, end_time, value)
Plot the history.