Stairs.
max
(lower=-inf, upper=inf, lower_how='right', upper_how='left')¶Calculates the maximum value of the step function
If an interval which to calculate over is specified it is interpreted as a closed interval, with lower_how and upper_how indicating how the step function should be evaluated at the at the endpoints of the interval.
Parameters: |
|
---|---|
Returns: | The maximum value of the step function |
Return type: | float |
See also
Examples
>>> s1.plot()
>>> s1.max()
1.0
>>> s1.max(4, 5)
-1
>>> s1.max(4, 5, lower_how='left')
1
>>> s1.max(4, 5, upper_how='right')
0