Java Array Multiply multiplyHarmonics(float[] powerSpectrumInOut, int nHarmonics)

Here you can find the source of multiplyHarmonics(float[] powerSpectrumInOut, int nHarmonics)

Description

multiply Harmonics

License

Open Source License

Declaration

public static float[] multiplyHarmonics(float[] powerSpectrumInOut, int nHarmonics) 

Method Source Code

//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;
    }
}

Related

  1. multiplyBytes(byte[] in, int count, int mul)
  2. multiplyComplex(double[] one, double[] two)
  3. multiplyComplexVectors(float[] cA, float[] cB, long limit)
  4. multiplycst(int k, double[] t)
  5. multiplyElementwise(double[] a, int[] b)
  6. multiplyInPlace(double[] img, double val)
  7. multiplyInto(double[] out, double[] a, double[] b)
  8. multiplyP(int[] x)
  9. multiplyP(int[] x)