# staircase.Stairs.min¶

Stairs.min(lower=-inf, upper=inf, lower_how='right', upper_how='left')

Calculates the minimum 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: lower (int, float or pandas.Timestamp, optional) – lower bound of the interval on which to perform the calculation upper (int, float or pandas.Timestamp, optional) – upper bound of the interval on which to perform the calculation lower_how ({'left', 'right'}, default 'right') – Determines how the step function should be evaluated at lower. If ‘left’ then $$\lim_{x \to lower^{-}} f(x)$$ is included in the calculation. upper_how ({'left', 'right'}, default 'left') – Determines how the step function should be evaluated at upper. If ‘right’ then $$\lim_{x \to upper^{+}} f(x)$$ is included in the calculation. The minimum value of the step function float

Examples

>>> s2.plot()
>>> s2.min(0, 3)
0
>>> s2.min(0, 3, upper_how='right')
-1
>>> s2.min(0, 2)
0.5
>>> s2.min(0, 2, lower_how='left')
0.0