Stairs.
median
(lower=-inf, upper=inf)¶Calculates the median of the step function.
Parameters: |
|
---|---|
Returns: | The median of the step function |
Return type: | float |
See also
Stairs.mean()
, Stairs.mode()
, Stairs.percentile()
, Stairs.percentile_stairs()
Examples
>>> s1.plot()
>>> s1.median()
0.5
>>> s1.median(2,5)
0.0