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 area
Return type: float
See also
Examples
>>> s1.plot() >>> s1.integrate(3, 4.5) 0.5