Stairs.
get_integral_and_mean
(lower=-inf, upper=inf)¶Calculates the integral, and the mean of the step function.
Parameters: |
|
---|---|
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)