# Measurements and Statistics

Bistate waveform measurements, variance, histogram, autocorrelation

You can use DSP System Toolbox™ blocks and System objects to measure the moving statistics and stationary statistics of signals in MATLAB® and Simulink®. Moving statistics refer to the statistics of streaming signals that change with time. In the sliding window method for computing moving statistics, a window of specified length moves over the data sample by sample as the new data comes in. The objects and blocks compute the statistics of the data within this window. The exponential weighting method applies a set of weights to the data samples and processes the weighted data. These weights are computed recursively based on the age of the data. For stationary statistics, the blocks and objects compute the statistics of all the data that is available in a batch.

## Objects

expand all

 `dsp.MedianFilter` Median filter `dsp.MovingAverage` Moving average `dsp.MovingMaximum` Moving maximum `dsp.MovingMinimum` Moving minimum `dsp.MovingRMS` Moving root mean square `dsp.MovingStandardDeviation` Moving standard deviation `dsp.MovingVariance` Moving variance `powermeter` Measure power and CCDF of the power of voltage signal
 `dsp.PeakToRMS` Peak-to-root-mean-square value of vector

## Blocks

expand all

 Median Filter Median filter Moving Average Moving average Moving Maximum Moving maximum Moving Minimum Moving minimum Moving RMS Moving RMS Moving Standard Deviation Moving standard deviation Moving Variance Moving variance Power Meter Measure power and the CCDF of the power of voltage signal in Simulink
 Autocorrelation Autocorrelation of N-D array Correlation Cross-correlation of two inputs Maximum Maximum values of input or sequence of inputs Mean Find mean value of input or sequence of inputs Median Median value of input Minimum Minimum values of input or sequence of inputs RMS Root mean square value of input or sequence of inputs Sort Sort input elements by value Standard Deviation Standard deviation of input or sequence of inputs Variance Variance of input or sequence of inputs
 Histogram Histogram of input or sequence of inputs