docs: public double[] getMagnitudes(double[] amplitudes) {
          double[] magnitudes = getMagnitudes(amplitudes, true);
  
          double[] halfOfMagnitudes = new double[magnitudes.length/2];
          System.arraycopy(magnitudes, 0,halfOfMagnitudes, 0, halfOfMagnitudes.length);
          return halfOfMagnitudes;
      }