staircase.Stairs.mean

Stairs.mean()

The mean of the step function.

Returns
float

The mean of the step function

Examples

>>> s1.plot(arrows=True)
>>> s1.mean()
0.25
../../_images/staircase-Stairs-mean-1.png
>>> s3.plot(arrows=True)
>>> s3.mean()
0.166666
../../_images/staircase-Stairs-mean-2.png