LIBML
Version 3.2.4
LIBML DSP Software Library
|
Functions | |
void | tpt_mean_f32 (f32_t *aResult, const f32_t *aInData, uint32_t aCount) |
Mean value of a floating-point vector. More... | |
void | tpt_mean_f64 (f64_t *aResult, const f64_t *aInData, uint32_t aCount) |
Mean value of a floating-point vector. More... | |
void | tpt_mean_q15 (q15_t *aResult, const q15_t *aInData, uint32_t aCount) |
Mean value of a Q15 vector. More... | |
void | tpt_mean_q31 (q31_t *aResult, const q31_t *aInData, uint32_t aCount) |
Mean value of a Q31 vector. More... | |
void | tpt_mean_q7 (q7_t *aResult, const q7_t *aInData, uint32_t aCount) |
Mean value of a Q7 vector. More... | |
Calculates the mean of the input vector. Mean is defined as the average of the elements in the vector. The underlying algorithm is used:
aResult = (aInData[0] + aInData[1] + aInData[2] + ... + aInData[aCount-1]) / aCount;
There are separate functions for floating-point, Q31, Q15, and Q7 data types.
Mean value of a floating-point vector.
[out] | aResult | mean value returned here. |
[in] | aInData | points to the input vector. |
[in] | aCount | number of samples in input vector. |
Mean value of a floating-point vector.
[out] | aResult | mean value returned here. |
[in] | aInData | points to the input vector. |
[in] | aCount | number of samples in input vector. |
Mean value of a Q15 vector.
[out] | aResult | mean value returned here. |
[in] | aInData | points to the input vector. |
[in] | aCount | number of samples in input vector. |
Mean value of a Q31 vector.
[out] | aResult | mean value returned here. |
[in] | aInData | points to the input vector. |
[in] | aCount | number of samples in input vector. |
Mean value of a Q7 vector.
[out] | aResult | mean value returned here. |
[in] | aInData | points to the input vector. |
[in] | aCount | number of samples in input vector. |