1.2.2.1 mchp_cmplx_mag_f32()
void mchp_cmplx_mag_f32 (const float32_t * pSrc, float32_t * pDst, uint32_t numSamples)
Single-precision floating-point complex magnitude.
Computes: pDst[n] = sqrt( (real[n] * real[n]) + (imag[n] * imag[n]) )
This function is commonly used after FFT to obtain amplitude spectra from complex frequency-domain data.
| in | pSrc |
points to the interleaved complex input vector |
| out | pDst |
points to the real-valued output vector |
| in | numSamples |
number of complex samples in the input vector |
Note:
Output vector length must be at least numSamples elements.
