Here you can find the source of multiplyHarmonics(float[] powerSpectrumInOut, int nHarmonics)
public static float[] multiplyHarmonics(float[] powerSpectrumInOut, int nHarmonics)
//package com.java2s; public class Main { public static float[] multiplyHarmonics(float[] powerSpectrumInOut, int nHarmonics) { for (int h = 0; h < nHarmonics; h++) { final int hop = h + 1; final int lim = powerSpectrumInOut.length / hop; for (int i = 0; i < lim; i++) powerSpectrumInOut[i] *= powerSpectrumInOut[i * hop]; }/*from ww w . j a v a 2 s. co m*/ return powerSpectrumInOut; } }