Processing math: 100%

AVG – Moving average filter

Block SymbolLicensing group: STANDARD
PIC

Function Description
The AVG block computes a moving average from the last n samples according to the formula

yk=1n(uk+uk1++ukn+1).

There is a limitation n<N, where N depends on the implementation. If the last n samples are not yet known, the average is computed from the samples available.

This block propagates the signal quality. More information can be found in the 1.4 section.

Input

u

Input signal to be filtered

Double (F64)

Parameter

n

Number of samples for averaging  1 10000000 10

Long (I32)

nmax

Allocated size of array  10 10000000 100

Long (I32)

Output

y

Filtered output signal

Double (F64)

2024 © REX Controls s.r.o., www.rexygen.com