From 76177aa280494bb36d7a0bcbda1078d4db717020 Mon Sep 17 00:00:00 2001 From: Ali Labbene Date: Mon, 9 Dec 2019 11:25:19 +0100 Subject: Official ARM version: v4.5 --- .../DSP/html/group___variance_example.html | 157 +++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 Documentation/DSP/html/group___variance_example.html (limited to 'Documentation/DSP/html/group___variance_example.html') diff --git a/Documentation/DSP/html/group___variance_example.html b/Documentation/DSP/html/group___variance_example.html new file mode 100644 index 0000000..f10bf98 --- /dev/null +++ b/Documentation/DSP/html/group___variance_example.html @@ -0,0 +1,157 @@ + + + + + +Variance Example +CMSIS-DSP: Variance Example + + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
CMSIS-DSP +  Version 1.4.7 +
+
CMSIS DSP Software Library
+
+
+ +
+
    + +
+
+ + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Variance Example
+
+
+
Description:
+
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.
+
Algorithm:
+
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:
 variance = ((x[0] - x') * (x[0] - x') + (x[1] - x') * (x[1] - x') + ... + * (x[n-1] - x') * (x[n-1] - x')) / (N-1)
where, x[n] is the input sequence, N is the number of input samples, and x' is the mean value of the input sequence, x[n].
+
The mean value x' is defined as:
 x' = (x[0] + x[1] + ... + x[n-1]) / N
+
Block Diagram:
+
+Variance.gif +
+
+
Variables Description:
+
    +
  • testInput_f32 points to the input data
  • +
  • wire1, wir2, wire3 temporary buffers
  • +
  • blockSize number of samples processed at a time
  • +
  • refVarianceOut reference variance value
  • +
+
+
CMSIS DSP Software Library Functions Used:
+
+
+

Refer arm_variance_example_f32.c

+
+
+ + + + -- cgit