staircase.Stairs.integrate

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

Calculates the integral 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 integral of the step function

Return type:

float

Examples

>>> s1.plot()
>>> s1.integrate(3, 4.5)
0.5
../_images/staircase-Stairs-integrate-1.png