122123124125126127128129
* we need only return values between 0 and 255. */ computeLogBase2(numberFftPoints); createWeightFft(numberFftPoints, invert); initComplexArrays(); weightFftTimesFrom2 = new Complex(); tempComplex = new Complex(); }
135136137138139140141142143144
inputFrame = new Complex[numberFftPoints]; from = new Complex[numberFftPoints]; to = new Complex[numberFftPoints]; for (int i = 0; i < numberFftPoints; i++) { inputFrame[i] = new Complex(); from[i] = new Complex(); to[i] = new Complex(); } }
249250251252253254255256
if (invert) { w = -w; } for (int k = 0; k < (numberFftPoints >> 1); k++) { weightFft[k] = new Complex(Math.cos(w * k), Math.sin(w * k)); } }