「fftn(API)」の版間の差分
提供: Eospedia
(ページの作成:「DataManip/mrcImage/src/'''fftn'''は、FFT処理のためのAPI です。 == 定数 == == 構造体 == == API == extern void fft_free (void); ===double precision rou...」) |
|||
行6: | 行6: | ||
== API == | == API == | ||
+ | ===使用メモリーを解放=== | ||
+ | FFT処理で使用しているfftn.c内のメモリーを解放します。 | ||
extern void fft_free (void); | extern void fft_free (void); | ||
− | === | + | ===FFT処理=== |
+ | double型 | ||
extern int fftn (int ndim, const int dims[], double Re[], double Im[], | extern int fftn (int ndim, const int dims[], double Re[], double Im[], | ||
int isign, double scaling); | int isign, double scaling); | ||
− | + | float型 | |
extern int fftnf (int ndim, const int dims[], float Re[], float Im[], | extern int fftnf (int ndim, const int dims[], float Re[], float Im[], | ||
int isign, double scaling); | int isign, double scaling); | ||
行18: | 行21: | ||
==変数の意味== | ==変数の意味== | ||
このAPIの変数は以下のような用途で使用されています。 | このAPIの変数は以下のような用途で使用されています。 | ||
− | Re[]: | + | Re[]: 実部の配列 |
− | Im[]: | + | Im[]: 虚部の配列 |
− | nTotal: | + | nTotal: 全複素数の数(各成分のサイズ(dims[])を全て掛けた値) |
nPass: number of elements involved in this pass of transform | nPass: number of elements involved in this pass of transform | ||
nSpan: nspan/nPass = number of bytes to increment pointer | nSpan: nspan/nPass = number of bytes to increment pointer | ||
in Re[] and Im[] | in Re[] and Im[] | ||
isign: exponent: +1 = forward -1 = reverse | isign: exponent: +1 = forward -1 = reverse | ||
− | + | scaling: normalizing constant by which the final result is *divided* | |
scaling == -1, normalize by total dimension of the transform | scaling == -1, normalize by total dimension of the transform | ||
scaling < -1, normalize by the square-root of the total dimension | scaling < -1, normalize by the square-root of the total dimension |
2014年5月23日 (金) 00:07時点における版
DataManip/mrcImage/src/fftnは、FFT処理のためのAPI です。
定数
構造体
API
使用メモリーを解放
FFT処理で使用しているfftn.c内のメモリーを解放します。
extern void fft_free (void);
FFT処理
double型
extern int fftn (int ndim, const int dims[], double Re[], double Im[], int isign, double scaling);
float型
extern int fftnf (int ndim, const int dims[], float Re[], float Im[], int isign, double scaling);
変数の意味
このAPIの変数は以下のような用途で使用されています。
Re[]: 実部の配列 Im[]: 虚部の配列 nTotal: 全複素数の数(各成分のサイズ(dims[])を全て掛けた値) nPass: number of elements involved in this pass of transform nSpan: nspan/nPass = number of bytes to increment pointer in Re[] and Im[] isign: exponent: +1 = forward -1 = reverse scaling: normalizing constant by which the final result is *divided* scaling == -1, normalize by total dimension of the transform scaling < -1, normalize by the square-root of the total dimension