org.mklab.tool.matrix
クラス Dft

java.lang.Object
  上位を拡張 org.mklab.tool.matrix.Dft

public class Dft
extends Object

離散フーリエ変換の結果を求めるクラスです。

Discrete Fourier Transform

バージョン:
$Revision: 1.25 $
作成者:
koga
関連項目:
Idft

コンストラクタの概要
Dft()
           
 
メソッドの概要
static NumericalMatrix<?> dft(Matrix X_)
           
static NumericalMatrix<?> dft(Matrix X_, int N)
          X の離散時間フーリエ変換 W = expˆ{-j*2PI/N} Y(k) = sum_{n=0}ˆ{N-1} X(n) Wˆ{k n} k = 0,1,...
static Gnuplot plot(Matrix X)
          離散フーリエ変換の結果を描画する
static Gnuplot plot(Matrix x, double samplingInterval)
          離散フーリエ変換の結果を描画する
static Gnuplot plot(Matrix x, double samplingInterval, int size)
          離散フーリエ変換の結果を描画する
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Dft

public Dft()
メソッドの詳細

dft

public static NumericalMatrix<?> dft(Matrix X_)
パラメータ:
X_ - データ
戻り値:
離散フーリエ変換の結果 (transformed result)

dft

public static NumericalMatrix<?> dft(Matrix X_,
                                     int N)
X の離散時間フーリエ変換

 
 W = expˆ{-j*2PI/N}
 
 Y(k) = sum_{n=0}ˆ{N-1} X(n) Wˆ{k n} k = 0,1,...,N-1
 
 Y(k) = Y(j*k * 2*PI/(N*T)) T := サンプリング周期
 
 
を求めます。

パラメータ:
X_ - データ
N - データの個数
戻り値:
離散フーリエ変換の結果 (transformed result)

plot

public static Gnuplot plot(Matrix X)
                    throws IOException
離散フーリエ変換の結果を描画する

パラメータ:
X - データ
戻り値:
Gnuplot
例外:
IOException - gnuplotプロセスを起動できない場合

plot

public static Gnuplot plot(Matrix x,
                           double samplingInterval)
                    throws IOException
離散フーリエ変換の結果を描画する

パラメータ:
x - データ
samplingInterval - サンプリング周期
戻り値:
Gnuplot
例外:
IOException - gnuplotプロセスを起動できない場合

plot

public static Gnuplot plot(Matrix x,
                           double samplingInterval,
                           int size)
                    throws IOException
離散フーリエ変換の結果を描画する

パラメータ:
x - データ
samplingInterval - サンプリング周期
size - データの個数
戻り値:
Gnuplot 描画するGnuplot
例外:
IOException - gnuplotプロセスを起動できない場合