lib/minim/src/ddf/minim/analysis/FourierTransform.java
/**
   * Sets the number of averages used when computing the spectrum and spaces the
   * averages in a linear manner. In other words, each average band will be
   * <code>specSize() / numAvg</code> bands wide.
   * 
   * @param numAvg
   *          int: how many averages to compute
   *          
   * @example Analysis/SoundSpectrum
   * 
   * @related FFT
   */
Sets the number of averages used when computing the spectrum and spaces the
averages in a linear manner. In other words, each average band will be
specSize() / numAvg bands wide.

@param numAvg
int: how many averages to compute



@related FFT
Sets the number of averages used when computing the spectrum and spaces the averages in a linear manner . In other words each average band will be specSize () / numAvg bands wide . @param numAvg int : how many averages to compute @related FFT
public void linAverages(int numAvg)
  {
    if (numAvg > spectrum.length / 2)
    {
      Minim.error("The number of averages for this transform can be at most "
          + spectrum.length / 2 + ".");
      return;
    }
    else
    {
      averages = new float[numAvg];
    }
    whichAverage = LINAVG;
  }
public void linAverages ( int numAvg ) { if ( numAvg > spectrum . length / 2 ) { Minim . error ( "The number of averages for this transform can be at most " + spectrum . length / 2 + "." ) ; return ; } else { averages = new float [ numAvg ] ; } whichAverage = LINAVG ; }
Sets the number of averages used when computing the spectrum and spaces the
 averages in a linear manner.
Sets the number of averages used when computing the spectrum and spaces the averages in a linear manner .