public static double[] computeLogPowerSpectrum(final double[] signal){
  double[] spectrum=computePowerSpectrum(signal);
  for (int i=0; i < spectrum.length; i++) {
    spectrum[i]=MathUtils.db(spectrum[i]);
  }
  return spectrum;
}

public static double [ ] computeLogPowerSpectrum ( final double [ ] signal ) { double [ ] spectrum = computePowerSpectrum ( signal ) ; for ( int i = 0 ; i < spectrum . length ; i ++ ) { spectrum [ i ] = MathUtils . db ( spectrum [ i ] ) ; } return spectrum ; }
convenience method for computing the log ( db ) power spectrum of a real signal . the signal can be of any length ; internally , zeroes will be added if signal length is not a power of two .
