file:///D:/System%20Workbench/STM32CubeF1-master/Drivers/CMSIS/docs/DSP/html/group__variance.html
Descriptionคำนวณ the variance ของ the elements ใน the input vector. The underlying algorithm ถูกใช้เป็น the direct method บางครั้งอ้างอิงถึงอย่าง the two-pass method:
Result = sum(element - meanOfElements)^2) / numElement - 1
โดยที่, meanOfElements = ( pSrc[0] * pSrc[0] + pSrc[1] * pSrc[1] + ... + pSrc[blockSize-1] ) / blockSize
มีฟังชั่นที่แยกกันสำหรับ floating point, Q31, and Q15 data types.