src/mfcc.js
function powerSpectrum(amplitudes) {
  var N = amplitudes.length;

  return amplitudes.map(function (a) {
    return (a * a) / N;
  });
}
function powerSpectrum(amplitudes) {
  var N = amplitudes.length;

  return amplitudes.map(function (a) {
    return (a * a) / N;
  });
}
function powerSpectrum ( amplitudes ) { var N = amplitudes . length ; return amplitudes . map ( function ( a ) { return ( a * a ) / N ; } ) ; }
Estimate the power spectrum density from FFT amplitudes.
Estimate the power spectrum density from FFT amplitudes .