#include <stdio.h>
#include <math.h>
#define FFT_ORDER 10
#define SIN_NCYCLE 5
int main(int argc, char **argv)
{
long fftl;
x = xdvinit(0, 1, fftl - 1);
dvscoper(x, "*", 2.0 * PI * SIN_NCYCLE / (double)(fftl - 1));
dvsin(x);
#if 1
dvoper(x, "*", win);
xdvfree(win);
#endif
y = xdvfftex(fftrec, x);
#if 1
dvabs(y);
#endif
dvdump(y);
xdvfree(x);
xdvfree(y);
return 0;
}
long spGetFFTLength(spFFTRec fftrec)
spFFTRec spInitFFT(long order, spFFTPrecision precision)
spBool spFreeFFT(spFFTRec fftrec)
#define SP_FFT_DEFAULT_PRECISION
Definition fft.h:38
double型を扱うためのベクトル型です.
Definition vector.h:248
long length
Definition vector.h:251