STM32F1 CMSIS DSP Statistics Functions(สถิติ)

Started by tha, July 09, 2021, 07:13:38 AM

Previous topic - Next topic

tha



Scaling and Overflow Behavior:

The function ถูกจัดให้มีใช้โดยใช้ a 64-bit internal accumulator. The input ถูกแสดงใน 1.15 format  การคูณกลางทางให้ a 2.30 format, และผลลัพธ์ถูกบวกโดยไม่มีการอิ่มตัวไปยัง a 64-bit accumulator  ใน 34.30 format. ด้วย 33 guard bits ใน the accumulator, ไม่มีความเสี่ยงของ overflow, และ the full precision ของ the intermediate multiplication ถูกรักษา. สุดท้ายy, the return result อยู่ในn 34.30 format.

References __SIMD32, __SMLALD(), and blockSize.

tha



Scaling and Overflow Behavior:

The function ถูกจัดให้มีใช้โดยใช้ a 64-bit internal accumulator. The input ถูกแสดงใน 1.31 format  การคูณกลางทางให้ a 2.62 format, และผลลัพธ์นี้ถูกตัดเป็น 2.48 format โดยการทิ้ง the lower 14 bits. The 2.48 result ดังนั้นถูกบวกโดยไม่มีการอิ่มตัวไปยัง a 64-bit accumulator  ใน 16.48 format. ด้วย 15 guard bits ใน the accumulator, ไม่มีความเสี่ยงของ overflow, และ the full precision ของ the intermediate multiplication ถูกรักษา. สุดท้ายy, the return result อยู่ใน 16.48 format.

References blockSize.


tha



Scaling and Overflow Behavior:

The function ถูกจัดให้มีใช้โดยใช้ a 32-bit internal accumulator. The input ถูกแสดงใน 1.7 format  การคูณกลางทางให้ a 2.14 format, และผลลัพธ์ถูกบวกโดยไม่มีการอิ่มตัวไปยัง an accumulator  ใน 18.14 format. ด้วย 17 guard bits ใน the accumulator, ไม่มีความเสี่ยงของ overflow, และ the full precision ของ the intermediate multiplication ถูกรักษา. สุดท้ายy, the return result อยู่ในn 18.14 format.

References __SIMD32, __SMLAD(), __SXTB16(), and blockSize.

tha

file:///D:/System%20Workbench/STM32CubeF1-master/Drivers/CMSIS/docs/DSP/html/group__RMS.html



Description

คำนวณ the Root Mean Sqaure ขององค์ประกอบใน the input vector. The underlying algorithm ถูกใช้ :

Result = sqrt(((pSrc[0] * pSrc[0] + pSrc[1] * pSrc[1] + ... + pSrc[blockSize-1] * pSrc[blockSize-1]) / blockSize));

มีฟังชั่นที่แยกกันสำหรับ floating-point, Q31 and Q15 data types.


tha



Scaling and Overflow Behavior:

The function ถูกจัดให้มีใช้โดยใช้ a 64-bit internal accumulator. The input ถูกแสดงใน 1.15 format  การคูณกลางทางให้ a 2.30 format, และผลลัพธ์นี้ถูกบวกโดยไม่มีการอิ่มตัวไปยัง a 64-bit accumulator  ใน 34.30 format. ด้วย 33 guard bits ใน the accumulator, ไม่มีความเสี่ยงของ overflow, และ the full precision ของ the intermediate multiplication ถูกรักษา. สุดท้าย, the 34.30 result ถูกตัดเป็น 34.15 format โดยการทิ้ง the lower 15 bits, และจากนั้นถูกอิ่มตัวเพื่อให้ได้ผลลัพธ์ในn 1.15 format.

References __SIMD32, __SMLALD(), arm_sqrt_q15(), and blockSize.

tha



Scaling and Overflow Behavior:

The function ถูกจัดให้มีใช้โดยใช้ a 64-bit internal accumulator. The input ถูกแสดงใน 1.31 format  การคูณกลางทางให้ a 2.62 format, The accumulator รักษา full precision ของ the intermediate multiplication results, แต่จัดให้มีเพียง a single guard bit. ไม่มีการอิ่มตัวบนการบวกกลางทาง. ถ้า the accumulator overflows, มันจะพันรอบและบิดเบือน the result. เพื่อหลีกเลี่ยง overflows อย่างสมบูรณ์, the input signal ต้องถูกปรับขนาดลงโดย log2(blockSize) bits, เนื่องจากการบวก blockSize ทั้งหมดถูกดำเนินการภายใน. สุดท้าย, the 2.62 accumulator ถูกเลื่อนไปทางขวา 31 บิตเพื่อให้ได้ a 1.31 format value.

References arm_sqrt_q31(), blockSize, and clip_q63_to_q31().