Daniel Konegen / MNIST_example

Dependencies:   mbed-os

Embed: (wiki syntax)

« Back to documentation index

Real FFT Tables

Real FFT Tables
[RealFFT]

Variables

const q15_t ALIGN4 realCoefAQ15 [8192]
const q15_t ALIGN4 realCoefBQ15 [8192]

Variable Documentation

const q15_t ALIGN4 realCoefAQ15[8192]
Generation fixed-point realCoefAQ15 array in Q15 format:
n = 4096
for (i = 0; i < n; i++)
  {
    pATable[2 * i] = 0.5 * (1.0 - sin (2 * PI / (double) (2 * n) * (double) i));
    pATable[2 * i + 1] = 0.5 * (-1.0 * cos (2 * PI / (double) (2 * n) * (double) i));
  } 
Convert to fixed point Q15 format round(pATable[i] * pow(2, 15))

Definition at line 56 of file arm_rfft_init_q15.c.

const q15_t ALIGN4 realCoefBQ15[8192]
Generation of real_CoefB array:
n = 4096
for (i = 0; i < n; i++)
  {
    pBTable[2 * i] = 0.5 * (1.0 + sin (2 * PI / (double) (2 * n) * (double) i));
    pBTable[2 * i + 1] = 0.5 * (1.0 * cos (2 * PI / (double) (2 * n) * (double) i));
  } 
Convert to fixed point Q15 format round(pBTable[i] * pow(2, 15))

Definition at line 1098 of file arm_rfft_init_q15.c.