staircase.Stairs.get_integral_and_mean¶
-
Stairs.
get_integral_and_mean
(lower=-inf, upper=inf)¶ Calculates the integral, and the mean 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 and mean are returned as a pair
Return type: tuple
See also
Examples
>>> s1.plot() >>> s1.get_integral_and_mean(3, 4.5) (0.5, 0.3333333333333333)