/*--------------------------------------------------------------------------------
離散フーリエ変換と逆離散フーリエ変換
discrete Fourier transform and inverse discrete Fourier transform
DFT.h
*--------------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <malloc.h>
#define SAMPLING_FREQ 1 // サンプリング周波数, sampling frequency
typedef struct
{
double real; // 実部, real part
double imag; // 虚部, imaginary part
} complex;
extern complex *readdata( int *num );
extern void fourier( int num, complex *x, complex *F );
extern void inv_fourier( int num, complex *x, complex *F );