================================ Weighted Centered Moving Average ================================ :doc:`/WorkProcessClassifiers/LocalAlgorithm/index` - :doc:`/WorkProcessClassifiers/OneDimensionalAlgorithm/index` *Weighted Centered Moving Average* algorithm is based on the *Centered Moving Average* algorithm. Differently, varying weights are assigned to the values within the filter width. The basic formula (for filter width :math:`L = 2M+1`\ ) is stated as follows: .. math:: \hat{x}[n] = \frac{1}{2M+1} \sum_{k=-M}^M w[k] x[n+k] \, \text{,} where :math:`x[n]`\ , :math:`\hat{x}[n]` and :math:`w[k]` denote raw data, processed data and weights, respectively. .. rubric:: Input Parameters +------------------------+------------------------------------------------+----------------------------------------------------------------+--------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | Parameter | Type | Constraint | Description | Remarks | +========================+================================================+================================================================+==================================================+==============================================================================================================+ | :math:`x[n]` | :math:`x[n] \in \mathbb R^N` | :math:`N \in \mathbb{N}` | Input data sequence of length :math:`N` | The algorithm assumes that input data contains no outliers and improper values such as 'nan', 'inf', 'null'. | +------------------------+------------------------------------------------+----------------------------------------------------------------+--------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :math:`L` | :math:`L \in \mathbb N` | :math:`L = 2M + 1, \quad M \in \mathbb{N}` | | | +------------------------+------------------------------------------------+----------------------------------------------------------------+--------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :math:`w[k]` | :math:`w[k] \in \mathbb{R}^L` | :math:`w[k] \geq 0, \quad \sum w[k] = 1` | Weighting vector of of length :math:`L` | | +------------------------+------------------------------------------------+----------------------------------------------------------------+--------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ .. rubric:: Output Parameters +--------------------------------+--------------------------------------------------------+----------------------------------------+---------------------------------------------------+---------+ | Parameter | Type | Constraint | Description | Remarks | +================================+========================================================+========================================+===================================================+=========+ | :math:`\hat{x}[n]` | :math:`\hat{x}[n] \in \mathbb R^N` | :math:`N \in \mathbb{N}` | Output data sequence of length :math:`N` | | +--------------------------------+--------------------------------------------------------+----------------------------------------+---------------------------------------------------+---------+ .. rubric:: Tool Support * :doc:`/Tools/ExcelTool/index` * :doc:`/Tools/MatlabTool/index` For details refer to the online documentation of the function `'filter' `__. .. rubric:: Single Steps using the Algorithm * :doc:`/DataPreprocessing/DataCleaning/DataDenoising/DataDenoisingWithWeightedCenteredMovingAverage/index`