C# Class WaveAnalysis.WaveAnalyzer

Wave ファイル解析用クラス。
Mostra file Open project: ufcpp/UfcppSample Class Usage Examples

Public Methods

Method Description
DeconvoluteReference ( string filename, int skip, int length, ReferenceType type, bool isNormalize ) : void

リファレンス wave の読み出し。

DeconvoluteReference ( string filename, int skip, int length, ReferenceType type, bool isNormalize, double threshold, bool relative ) : void

リファレンス wave の読み出し。 無音区間の除去を行う。

ReadData ( string filename, int skip, int length ) : void

データ wave の読み出し。

ReadData ( string filename, int skip, int length, double threshold, bool relative ) : void

データ wave の読み出し。 無音区間の除去を行う。

WirteData ( string filename ) : void

データ wave の書き込み。

Private Methods

Method Description
CopyArray ( double src, int index, int length ) : double[]

配列をコピー

Deconvolute ( WaveData &data, WaveData reference, ReferenceType type, bool isNormalize ) : void
GetPeekValue ( double x ) : double

配列のピーク値を求める。

GetSilentLength ( double x, double threshold ) : int

無音区間の長さを求める。

Read ( string filename, int skip, int length ) : WaveData

ファイルから Wave データを読み出し。

Read ( string filename, int skip, int length, double threshold, bool relative ) : WaveData

ファイルから Wave データを読み出し。

Read ( string filename, int skip, int length, double threshold, bool relative, ReferenceType type ) : WaveData

ファイルから Wave データを読み出し。

Method Details

DeconvoluteReference() public method

リファレンス wave の読み出し。
public DeconvoluteReference ( string filename, int skip, int length, ReferenceType type, bool isNormalize ) : void
filename string ファイル名
skip int ファイルの先頭を読み飛ばす長さ
length int 読み込む長さ
type ReferenceType リファレンスのタイプ
isNormalize bool リファレンスの振幅特性を正規化するかどうか
return void

DeconvoluteReference() public method

リファレンス wave の読み出し。 無音区間の除去を行う。
public DeconvoluteReference ( string filename, int skip, int length, ReferenceType type, bool isNormalize, double threshold, bool relative ) : void
filename string ファイル名
skip int ファイルの先頭を読み飛ばす長さ
length int 読み込む長さ
type ReferenceType リファレンスのタイプ
isNormalize bool リファレンスの振幅特性を正規化するかどうか
threshold double 閾値
relative bool 閾値にピーク値から見た相対値を使う
return void

ReadData() public method

データ wave の読み出し。
public ReadData ( string filename, int skip, int length ) : void
filename string ファイル名
skip int ファイルの先頭を読み飛ばす長さ
length int 読み込む長さ
return void

ReadData() public method

データ wave の読み出し。 無音区間の除去を行う。
public ReadData ( string filename, int skip, int length, double threshold, bool relative ) : void
filename string ファイル名
skip int ファイルの先頭を読み飛ばす長さ
length int 読み込む長さ
threshold double 閾値
relative bool 閾値にピーク値から見た相対値を使う
return void

WirteData() public method

データ wave の書き込み。
public WirteData ( string filename ) : void
filename string ファイル名
return void