Discrete Mean Value
Purpose
Calculate running mean value of input signal
Library
Control / Discrete
Description
This block calculates the running mean of the input signal based on discrete
samples. The sample time and the number of samples can be specified. The block is
implemented with a shift register. The output of the block is the sum of all register
values divided by the number of samples.
Note In Simulink this block is only available for
MATLAB 7.0 or newer.
Parameters
-
Initial condition
- The initial condition describes the input signal before
simulation start. If the input is a scalar signal the parameter can either be a
scalar or a column vector. The number of elements in the vector must match
the value of the parameter Number of samples - 1. If input and output are
vectorized signals a matrix can be used. The number of rows must be 1 or match
the number of input signals. The default value of this parameter is 0.
-
Sample time
- The time interval
between samples. See also the Discrete-Periodic sample time type in section
Sample Times.
-
Number of samples
- The number of samples used to calculate the mean value.