Class SpectralBand

java.lang.Object
likelihoodDetectionModule.spectralEti.SpectralBand

public class SpectralBand extends Object
A class which sums energy across a spectrum from a start frequency to an end frequency
Author:
Dave Flogeras
  • Constructor Details

    • SpectralBand

      public SpectralBand(double fStart, double fEnd, double sampleRate)
  • Method Details

    • calculate

      public double calculate(double[] input)
      Calculates the energy in the given band. Since the spectrum's size is unknown at construction time, the calculate method calculates in terms of bins the start and end bin
      Parameters:
      input - Input spectra
      Returns:
      Value of average energy in the band