C# Class AcoustID.Util.Helper

DSP and math helper methods.
Exibir arquivo Open project: wo80/AcoustID.NET

Public Methods

Method Description
ApplyWindow ( double &in_output, double window, int size, double scale ) : void
EuclideanNorm ( double vector ) : double
FreqToBark ( double f ) : double
FreqToIndex ( double freq, int frame_size, int sample_rate ) : int
IndexToFreq ( int i, int frame_size, int sample_rate ) : double
NormalizeVector ( double vector, double norm, double threshold = 0.01 ) : void
PrepareHammingWindow ( double &vector, int first, int last ) : void
Sum ( double vector, int first, int last ) : double

Method Details

ApplyWindow() public static method

public static ApplyWindow ( double &in_output, double window, int size, double scale ) : void
in_output double
window double
size int
scale double
return void

EuclideanNorm() public static method

public static EuclideanNorm ( double vector ) : double
vector double
return double

FreqToBark() public static method

public static FreqToBark ( double f ) : double
f double
return double

FreqToIndex() public static method

public static FreqToIndex ( double freq, int frame_size, int sample_rate ) : int
freq double
frame_size int
sample_rate int
return int

IndexToFreq() public static method

public static IndexToFreq ( int i, int frame_size, int sample_rate ) : double
i int
frame_size int
sample_rate int
return double

NormalizeVector() public static method

public static NormalizeVector ( double vector, double norm, double threshold = 0.01 ) : void
vector double
norm double
threshold double
return void

PrepareHammingWindow() public static method

public static PrepareHammingWindow ( double &vector, int first, int last ) : void
vector double
first int
last int
return void

Sum() public static method

public static Sum ( double vector, int first, int last ) : double
vector double
first int
last int
return double