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

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

Previous topic - Next topic

tha

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



Description

หาค่าสูงสุดของ an array of data. The function คืนกลับทั้ง the maximum value และตำแหน่งของมันภายใน the array. มีฟังชั่นที่แยกกันสำหรับ floating-point, Q31, Q15, and Q7 data types.

tha



Parameters
[in]   *pSrc      ชี้ไปยัง the input vector
[in]   blockSize      ความยาวของ the input vector
[out]   *pResult      maximum value ส่งคืนที่นี่
[out]   *pIndex      index of maximum value ส่งคืนที่นี่

Returns
none.

อ้างอิงโดย main()

tha



Parameters
[in]   *pSrc      ชี้ไปยัง the input vector
[in]   blockSize      ความยาวของ the input vector
[out]   *pResult      maximum value ส่งคืนที่นี่
[out]   *pIndex      index of maximum value ส่งคืนที่นี่

Returns
none.


tha



Parameters
[in]   *pSrc      ชี้ไปยัง the input vector
[in]   blockSize      ความยาวของ the input vector
[out]   *pResult      maximum value ส่งคืนกลับที่นี่
[out]   *pIndex      index of maximum value ส่งคืนกลับที่นี่

Returns
none.

tha



Parameters
[in]   *pSrc      ชี้ไปยัง the input vector
[in]   blockSize      ความยาวของ the input vector
[out]   *pResult      maximum value ส่งคืนกลับที่นี่
[out]   *pIndex      index of maximum value ส่งคืนกลับที่นี่

Returns
none.

tha

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



Description

คำนวณค่าเฉลี่ยของ the input vector. Mean ถูกกำหนดเป็นค่าเฉลี่ยขององค์ประกอบใน the vector. The underlying algorithm ถูกใช้ :

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

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


tha



Scaling and Overflow Behavior:

The function ถูกจัดให้มีใช้โดยใช้ a 32-bit internal accumulator. The input ถูกแสดงใน 1.15 format และถูกสะสมใน a 32-bit accumulator ใน 17.15 format. ไม่มีความเสี่ยงของ internal overflow ด้วยการเข้าใกล้นี้, และ the full precision ของ intermediate result ถูกรักษา. สุดท้าย, the accumulator ถูกทำให้อิ่มตัวและตัดออกเพื่อให้ได้ผลลัพธ์ของ 1.15 format.

References __SIMD32, and blockSize.