staircase.Stairs.std

Stairs.std(lower=-inf, upper=inf)

Calculates the standard deviation of the step function.

Parameters:
  • lower (int, float or pandas.Timestamp) – lower bound of the interval on which to perform the calculation
  • upper (int, float or pandas.Timestamp) – upper bound of the interval on which to perform the calculation
Returns:

The standard deviation of the step function

Return type:

float

See also

Stairs.var()

Examples

>>> s1.plot()
../_images/staircase-Stairs-std-1.png
>>> s1.std()
0.82915619758885
>>> s1.std(lower=0, upper=6)
0.6871842709362769