Skip to content

Commit

Permalink
added accessor functions for the real and complex parts of the spectrum.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Di Fede committed Apr 17, 2011
1 parent 1c87e29 commit 09191ac
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/ddf/minim/analysis/FourierTransform.java
Expand Up @@ -616,6 +616,23 @@ public float calcAvg(float lowFreq, float hiFreq)
avg /= (hiBound - lowBound + 1);
return avg;
}

/**
* Get the Real part of the Complex representation of the spectrum.
*/
public float[] getSpectrumReal()
{
return real;
}

/**
* Get the Imaginary part of the Complex representation of the spectrum.
*/
public float[] getSpectrumImaginary()
{
return imag;
}


/**
* Performs a forward transform on <code>buffer</code>.
Expand Down

0 comments on commit 09191ac

Please sign in to comment.