CMSIS DSP Lib
Fork of mbed-dsp by
Diff: cmsis_dsp/StatisticsFunctions/arm_var_f32.c
- Revision:
- 2:da51fb522205
- Parent:
- 1:fdd22bb7aa52
- Child:
- 3:7a284390b0ce
--- a/cmsis_dsp/StatisticsFunctions/arm_var_f32.c Wed Nov 28 12:30:09 2012 +0000 +++ b/cmsis_dsp/StatisticsFunctions/arm_var_f32.c Thu May 30 17:10:11 2013 +0100 @@ -2,12 +2,12 @@ * Copyright (C) 2010 ARM Limited. All rights reserved. * * $Date: 15. February 2012 -* $Revision: V1.1.0 +* $Revision: V1.1.0 * -* Project: CMSIS DSP Library -* Title: arm_var_f32.c +* Project: CMSIS DSP Library +* Title: arm_var_f32.c * -* Description: Variance of the elements of a floating-point vector. +* Description: Variance of the elements of a floating-point vector. * * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0 * @@ -43,11 +43,11 @@ * The underlying algorithm is used: * * <pre> - * Result = (sumOfSquares - sum<sup>2</sup> / blockSize) / (blockSize - 1) + * Result = (sumOfSquares - sum<sup>2</sup> / blockSize) / (blockSize - 1) * - * where, sumOfSquares = pSrc[0] * pSrc[0] + pSrc[1] * pSrc[1] + ... + pSrc[blockSize-1] * pSrc[blockSize-1] + * where, sumOfSquares = pSrc[0] * pSrc[0] + pSrc[1] * pSrc[1] + ... + pSrc[blockSize-1] * pSrc[blockSize-1] * - * sum = pSrc[0] + pSrc[1] + pSrc[2] + ... + pSrc[blockSize-1] + * sum = pSrc[0] + pSrc[1] + pSrc[2] + ... + pSrc[blockSize-1] * </pre> * * There are separate functions for floating point, Q31, and Q15 data types.