C# Class SoundLibrary.Filter.FirCommon

FIR フィルタ関係の共通関数群
显示文件 Open project: ufcpp/UfcppSample Class Usage Examples

Public Methods

Method Description
CalcEvenLinearBPFCoefficient ( FirFilterType type, double coef, double w, double w0, WindowFunction window ) : void

線形位相バンドパスフィルタ(奇数タップ)の係数を計算する。 右側半分のみを計算。

CalcLinearBPFCoefficient ( FirFilterType type, double w, double w0, int taps, WindowType window ) : IFirFilter
CalcOddLinearBPFCoefficient ( FirFilterType type, double coef, double w, double w0, WindowFunction window ) : void

線形位相バンドパスフィルタ(奇数タップ)の係数を計算する。 右側半分のみを計算。

Constant1 ( double i ) : double

窓関数用。常に1を返す関数。

GetBandPassFilter ( int taps, double wl, double wh, WindowType type ) : IFirFilter
GetHighPassFilter ( int taps, double w, WindowType type ) : IFirFilter
GetLowPassFilter ( int taps, double w, WindowType type ) : IFirFilter
GetWindow ( WindowType type, int order ) : WindowFunction

Method Details

CalcEvenLinearBPFCoefficient() public static method

線形位相バンドパスフィルタ(奇数タップ)の係数を計算する。 右側半分のみを計算。
public static CalcEvenLinearBPFCoefficient ( FirFilterType type, double coef, double w, double w0, WindowFunction window ) : void
type FirFilterType フィルタタイプ
coef double 係数の格納先
w double 遮断周波数(BPF の場合は遮断帯域幅、HPF の場合は π-遮断周波数)
w0 double (BPF のみ) 中心周波数
window WindowFunction 窓関数
return void

CalcLinearBPFCoefficient() public static method

public static CalcLinearBPFCoefficient ( FirFilterType type, double w, double w0, int taps, WindowType window ) : IFirFilter
type FirFilterType
w double
w0 double
taps int
window WindowType
return IFirFilter

CalcOddLinearBPFCoefficient() public static method

線形位相バンドパスフィルタ(奇数タップ)の係数を計算する。 右側半分のみを計算。
public static CalcOddLinearBPFCoefficient ( FirFilterType type, double coef, double w, double w0, WindowFunction window ) : void
type FirFilterType フィルタタイプ
coef double 係数の格納先
w double 遮断周波数(BPF の場合は遮断帯域幅、HPF の場合は π-遮断周波数)
w0 double (BPF のみ) 中心周波数
window WindowFunction 窓関数
return void

Constant1() public static method

窓関数用。常に1を返す関数。
public static Constant1 ( double i ) : double
i double
return double

GetBandPassFilter() public static method

public static GetBandPassFilter ( int taps, double wl, double wh, WindowType type ) : IFirFilter
taps int
wl double
wh double
type WindowType
return IFirFilter

GetHighPassFilter() public static method

public static GetHighPassFilter ( int taps, double w, WindowType type ) : IFirFilter
taps int
w double
type WindowType
return IFirFilter

GetLowPassFilter() public static method

public static GetLowPassFilter ( int taps, double w, WindowType type ) : IFirFilter
taps int
w double
type WindowType
return IFirFilter

GetWindow() public static method

public static GetWindow ( WindowType type, int order ) : WindowFunction
type WindowType
order int
return WindowFunction