# Midrange¶

Midrange algorithm is computed from

$m = \frac{\text{max}(Y) + \text{min}(Y)}{2} \, \text{,}$

where $$Y$$ is the input data vector and $$m$$ represents the midrange value. A selection algorithm is required to find the minimum, maximum values.

Input Parameters

Parameter Type Constraint Description Remarks
$$Y$$ $$Y \in \mathbb R^N$$ $$N \in \mathbb{N}$$ Input data vector of length $$N$$ None

Output Parameters

Parameter Type Constraint Description Remarks
$$m$$ $$m \in \mathbb R$$ None Midrange value of $$Y$$ None

Single Steps using the Algorithm