C# Class DSPUtil.ERB

Exibir arquivo Open project: hughpyle/inguz-DSPUtil Class Usage Examples

Public Methods

Method Description
ERBVal ( double f ) : double

ERB value for a given frequency

ERBWidth ( double f ) : double

Compute the equivalent rectangular bandwidth (ERB) at frequency f (Hz)

bin2f ( double bin, uint sr ) : double
bin2f ( double bin, uint sr, double bins ) : double
f2bin ( double f, uint sr ) : double
f2bin ( double f, uint sr, double bins ) : double
inflections ( double data, uint sr ) : FilterProfile

Return a list of freq/gain, only including inflection points (where the curve is flat).

integralofERB ( double f ) : double

Integral of ERB from 0 to f

invERB ( double b ) : double

Inverse of ERB(f)

invERBVal ( double v ) : double
invintegralofERB ( double i, uint sr ) : double
profile ( double data, uint sr ) : FilterProfile
profile ( double data, uint sr, double scaleFactor ) : FilterProfile

Return a list of freq/gain, at the ERB centers Assuming you smoothed the data...

smooth ( double data, int bands ) : double[]

Method Details

ERBVal() public static method

ERB value for a given frequency
public static ERBVal ( double f ) : double
f double Frequency (Hz)
return double

ERBWidth() public static method

Compute the equivalent rectangular bandwidth (ERB) at frequency f (Hz)
public static ERBWidth ( double f ) : double
f double Frequency (Hz)
return double

bin2f() public static method

public static bin2f ( double bin, uint sr ) : double
bin double
sr uint
return double

bin2f() public static method

public static bin2f ( double bin, uint sr, double bins ) : double
bin double
sr uint
bins double
return double

f2bin() public static method

public static f2bin ( double f, uint sr ) : double
f double
sr uint
return double

f2bin() public static method

public static f2bin ( double f, uint sr, double bins ) : double
f double
sr uint
bins double
return double

inflections() public static method

Return a list of freq/gain, only including inflection points (where the curve is flat).
public static inflections ( double data, uint sr ) : FilterProfile
data double
sr uint
return FilterProfile

integralofERB() public static method

Integral of ERB from 0 to f
public static integralofERB ( double f ) : double
f double
return double

invERB() public static method

Inverse of ERB(f)
public static invERB ( double b ) : double
b double bandwidth
return double

invERBVal() public static method

public static invERBVal ( double v ) : double
v double
return double

invintegralofERB() public static method

public static invintegralofERB ( double i, uint sr ) : double
i double
sr uint
return double

profile() public static method

public static profile ( double data, uint sr ) : FilterProfile
data double
sr uint
return FilterProfile

profile() public static method

Return a list of freq/gain, at the ERB centers Assuming you smoothed the data...
public static profile ( double data, uint sr, double scaleFactor ) : FilterProfile
data double data from ERB.smooth
sr uint sample rate
scaleFactor double 1.0 for ~38 bands. 0.5 for twice as many...
return FilterProfile

smooth() public static method

public static smooth ( double data, int bands ) : double[]
data double
bands int
return double[]