C# Class SoundLibrary.Filter.FirFilter

FIR フィルタクラス。
Inheritance: IFirFilter
显示文件 Open project: ufcpp/UfcppSample

Protected Properties

Property Type Description
buff CircularBuffer
coef double[]

Private Properties

Property Type Description

Public Methods

Method Description
Clear ( ) : void

内部状態のクリア

Clone ( ) : object
FirFilter ( ) : System

デフォルトコンストラクタ

FirFilter ( double coef ) : System

係数を指定して FIR を作る。

FirFilter ( int taps ) : System

タップ数を指定して FIR を作る。

GetValue ( double x ) : double

フィルタリングを行う。 N: フィルタ次数 (= this.coef.Length - 1) x: 入力 y: 出力 c[i]: 係数配列 d[i]: i+1 サンプル前の x の値 とすると、 y = x*c[N] + Σ_{i=0}^{N-1} d[i]*c[N-1-i]

Method Details

Clear() public method

内部状態のクリア
public Clear ( ) : void
return void

Clone() public method

public Clone ( ) : object
return object

FirFilter() public method

デフォルトコンストラクタ
public FirFilter ( ) : System
return System

FirFilter() public method

係数を指定して FIR を作る。
public FirFilter ( double coef ) : System
coef double 係数を格納した配列。
return System

FirFilter() public method

タップ数を指定して FIR を作る。
public FirFilter ( int taps ) : System
taps int タップ数
return System

GetValue() public method

フィルタリングを行う。 N: フィルタ次数 (= this.coef.Length - 1) x: 入力 y: 出力 c[i]: 係数配列 d[i]: i+1 サンプル前の x の値 とすると、 y = x*c[N] + Σ_{i=0}^{N-1} d[i]*c[N-1-i]
public GetValue ( double x ) : double
x double フィルタ入力。
return double

Property Details

buff protected_oe property

protected CircularBuffer,SoundLibrary.Filter buff
return CircularBuffer

coef protected_oe property

protected double[] coef
return double[]