========
Midrange
========
:doc:`/WorkProcessClassifiers/GlobalAlgorithm/index` - :doc:`/WorkProcessClassifiers/OneDimensionalAlgorithm/index`

*Midrange* algorithm is computed from

.. math::

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

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

.. rubric:: Input Parameters

+--------------------+--------------------------------------------+----------------------------------------+------------------------------------------------+---------+
| Parameter          | Type                                       | Constraint                             | Description                                    | Remarks |
+====================+============================================+========================================+================================================+=========+
| :math:`Y`          | :math:`Y \in \mathbb R^N`                  | :math:`N \in \mathbb{N}`               | Input data vector of length :math:`N`          |         |
+--------------------+--------------------------------------------+----------------------------------------+------------------------------------------------+---------+

.. rubric:: Output Parameters

+--------------------+----------------------------------------+------------+--------------------------------------+---------+
| Parameter          | Type                                   | Constraint | Description                          | Remarks |
+====================+========================================+============+======================================+=========+
| :math:`m`          | :math:`m \in \mathbb R`                |            | Midrange value of :math:`Y`          |         |
+--------------------+----------------------------------------+------------+--------------------------------------+---------+

.. rubric:: Single Steps using the Algorithm

* :doc:`/DataPreprocessing/MathematicalComputation/ComputingMidrangeValueWithMidrange/index`

* :doc:`/DataPreprocessing/DataCleaning/HandlingImproperValues/ReconstructingImproperValues/ReconstructingImproperValuesWithLocalCenteredMovingMidrange/index`