1.6.2.3 mchp_mean_f32()

void mchp_mean_f32 (const float32_t * pSrc, uint32_t blockSize, float32_t * pResult)

Mean value of a single-precision floating-point vector.

Computes: mean = (1/N) * sum(pSrc[n])

Parameters:
in pSrc

Pointer to input vector

in blockSize

Number of samples to process

out pResult

Computed mean value

Note:

blockSize must be greater than zero.