LIBML
Version 3.2.4
LIBML DSP Software Library
|
Functions | |
void | tpt_std_f32 (f32_t *aResult, const f32_t *aInData, uint32_t aCount) |
Standard deviation of the elements of a floating-point vector. More... | |
void | tpt_std_q15 (q15_t *aResult, const q15_t *aInData, uint32_t aCount) |
Standard deviation of the elements of a Q15 vector. More... | |
void | tpt_std_q31 (q31_t *aResult, const q31_t *aInData, uint32_t aCount) |
Standard deviation of the elements of a Q31 vector. More... | |
Calculates the standard deviation of the elements in the input vector. The underlying algorithm is used:
Result = sqrt((sumOfSquares - sum2 / aCount) / (aCount - 1)) sumOfSquares = aInData[0] * aInData[0] + aInData[1] * aInData[1] + ... + aInData[aCount-1] * aInData[aCount-1] sum = aInData[0] + aInData[1] + aInData[2] + ... + aInData[aCount-1]
There are separate functions for floating point, Q31, and Q15 data types.
Standard deviation of the elements of a floating-point vector.
[out] | aResult | standard deviation value returned here |
[in] | aInData | points to the input vector |
[in] | aCount | number of samples in input vector |
Standard deviation of the elements of a Q15 vector.
[out] | aResult | standard deviation value returned here |
[in] | aInData | points to the input vector |
[in] | aCount | number of samples in input vector |
Standard deviation of the elements of a Q31 vector.
[out] | aResult | standard deviation value returned here |
[in] | aInData | points to the input vector |
[in] | aCount | number of samples in input vector |