PLECS 3.1 Online Help |
Calculate the running mean value of the input signal.
PLECS Extras / Discrete Analysis
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 and an accumulator. The sample entering the shift register is added to the accumulator, the sample exiting the shift register is subtracted from the accumulator. The output of the block is the current accumulator value divided by the number of samples.