Vector Optimized Library of Kernels 3.1.0
Architecture-tuned implementations of math kernels
volk_32fc_s32f_power_spectrum_32f

Overview

Calculates the log10 power value for each input point.

Dispatcher Prototype

void volk_32fc_s32f_power_spectrum_32f(float* logPowerOutput, const lv_32fc_t*
complexFFTInput, const float normalizationFactor, unsigned int num_points)

Inputs

  • complexFFTInput The complex data output from the FFT point.
  • normalizationFactor: This value is divided against all the input values before the power is calculated.
  • num_points: The number of fft data points.

Outputs

  • logPowerOutput: The 10.0 * log10(r*r + i*i) for each data point.

Example

int N = 10000;
volk_32fc_s32f_power_spectrum_32f();