- group VarianceExample
Demonstrates the use of Basic Math and Support Functions to calculate the variance of an input sequence with N samples. Uniformly distributed white noise is taken as input.
The variance of a sequence is the mean of the squared deviation of the sequence from its mean.
This is denoted by the following equation: where,
x[n]is the input sequence,
Nis the number of input samples, and
x'is the mean value of the input sequence,
The mean value
x'is defined as:
- Block Diagram:
- Variables Description:
testInput_f32points to the input data
blockSizenumber of samples processed at a time
refVarianceOutreference variance value
- NMSIS DSP Software Library Functions Used: