staircase.Stairs.step_changes

Stairs.step_changes()

Returns a dictionary of key, value pairs of indicating where step changes occur in the step function, and the change in value

Returns:
Return type:dictionary

Examples

>>> s1.plot()
>>> s1.step_changes()
{1: 1, 2: -1, 3: 1, 4: -2, 5: 1}
../_images/staircase-Stairs-step_changes-1.png