|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tritonus.lowlevel.dsp.Util
public class Util
Helper methods used for filter design.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static double |
absolute2omega(double dAbsolute,
double dSampleRate)
Converts frequency representation from absolute to omega. |
static double |
I0(double x)
Modified Bessel function of first kind and 0th order. |
static Complex[] |
IDFT(Complex[] aFrequencyDomain)
Compute an inverse discrete fourier transform (IDFT). |
static double[] |
multiply(double[] ad1,
double[] ad2)
Multiplication of two arrays. |
static double |
omega2absolute(double dOmega,
double dSampleRate)
Converts frequency representation from omega to absolute. |
static double |
omega2relative(double dOmega)
Converts frequency representation from omega to relative. |
static float[] |
quantizeToFloat(double[] adConstants)
Quantize constants from double to float. |
static double |
relative2omega(double dRelative)
Converts frequency representation from relative to omega. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static double I0(double x)
public static Complex[] IDFT(Complex[] aFrequencyDomain)
aFrequencyDomain - The array containing the frequency
domain factors.
public static double[] multiply(double[] ad1,
double[] ad2)
public static double omega2relative(double dOmega)
dOmega - The frequency represented in omega
([-PI .. +PI]).
public static double relative2omega(double dRelative)
dRelative - The frequency represented relative to the
sample rate (f/fs).
public static double omega2absolute(double dOmega,
double dSampleRate)
dOmega - The frequency represented in omega
([-PI .. +PI]).dSampleRate - The sample rate (fs).
public static double absolute2omega(double dAbsolute,
double dSampleRate)
dAbsolute - The absolute frequency expressed in Hz (f).dSampleRate - The sample rate (fs).
public static float[] quantizeToFloat(double[] adConstants)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||