/*---------------------------------------------------------------------------------------------------
ウィーナー・ヒンチンの定理(非巡回的データを用いて)
~離散フーリエ変換を使って相互相関関数を計算~
Wiener-Khinchin theorem (using non-cyclic data)
~calculate the cross-correlation function using the discrete Fourier transform~
WKT_CC.h
---------------------------------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <malloc.h>
typedef struct
{
double real; // 実部, real part
double imag; // 虚部, imaginary part
} complex;
extern void fourier( int num, complex *x, complex *F );
extern void inv_fourier( int num, complex *x, complex *F );