From 9f95ff5b6ba01db09552b84a0ab79607060a2666 Mon Sep 17 00:00:00 2001 From: Ali Labbene Date: Wed, 11 Dec 2019 08:59:21 +0100 Subject: Official ARM version: v5.4.0 Add CMSIS V5.4.0, please refer to index.html available under \docs folder. Note: content of \CMSIS\Core\Include has been copied under \Include to keep the same structure used in existing projects, and thus avoid projects mass update Note: the following components have been removed from ARM original delivery (as not used in ST packages) - CMSIS_EW2018.pdf - .gitattributes - .gitignore - \Device - \CMSIS - \CoreValidation - \DAP - \Documentation - \DoxyGen - \Driver - \Pack - \RTOS\CMSIS_RTOS_Tutorial.pdf - \RTOS\RTX - \RTOS\Template - \RTOS2\RTX - \Utilities - All ARM/GCC projects files are deleted from \DSP, \RTOS and \RTOS2 Change-Id: Ia026c3f0f0d016627a4fb5a9032852c33d24b4d3 --- docs/DSP/html/group__VarianceExample.html | 157 ++++++++++++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 docs/DSP/html/group__VarianceExample.html (limited to 'docs/DSP/html/group__VarianceExample.html') diff --git a/docs/DSP/html/group__VarianceExample.html b/docs/DSP/html/group__VarianceExample.html new file mode 100644 index 0000000..b151a82 --- /dev/null +++ b/docs/DSP/html/group__VarianceExample.html @@ -0,0 +1,157 @@ + + + + + +Variance Example +CMSIS-DSP: Variance Example + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
CMSIS-DSP +  Version 1.5.2 +
+
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