Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Mean
[Statistics Functions]
Functions | |
void | arm_mean_q15 (q15_t *pSrc, uint32_t blockSize, q15_t *pResult) |
Mean value of a Q15 vector. |
Function Documentation
void arm_mean_q15 | ( | q15_t * | pSrc, |
uint32_t | blockSize, | ||
q15_t * | pResult | ||
) |
Mean value of a Q15 vector.
- Parameters:
-
[in] *pSrc points to the input vector [in] blockSize length of the input vector [out] *pResult mean value returned here
- Returns:
- none.
Scaling and Overflow Behavior:
- The function is implemented using a 32-bit internal accumulator. The input is represented in 1.15 format and is accumulated in a 32-bit accumulator in 17.15 format. There is no risk of internal overflow with this approach, and the full precision of intermediate result is preserved. Finally, the accumulator is saturated and truncated to yield a result of 1.15 format.
Definition at line 60 of file arm_mean_q15.c.
Generated on Wed Jul 13 2022 16:03:37 by
