Package Spectrogram

Class SpectrumBackgrounds

java.lang.Object
Spectrogram.SpectrumBackgrounds

public class SpectrumBackgrounds extends Object
  • Constructor Details

    • SpectrumBackgrounds

      public SpectrumBackgrounds(FFTDataBlock fftDataBlock, int channelMap)
  • Method Details

    • getFftDataBlock

      public FFTDataBlock getFftDataBlock()
      Returns:
      the fftDataBlock
    • getChannelMap

      public int getChannelMap()
      Returns:
      the channelMap
    • prepareS

      public boolean prepareS(int channelMap, double timeConstSecs)
      Prepare a set of background measurements for the given channel map
      Parameters:
      channelMap - new channel map
      timeConstSecs - Background time constant in seconds
      Returns:
    • prepareS

      public boolean prepareS(double timeConstSecs)
      Prepare a set of background measurements using the set channel map
      Parameters:
      timeConstSecs - Background time constant in seconds
      Returns:
      true
    • process

      public void process(FFTDataUnit fftDataUnit)
      Process an FFT data unit. Find the correct background for that channel and update.
      Parameters:
      fftDataUnit - FFT Data
    • copyBackground

      public double[] copyBackground(int channel)
      Get the background for a channel, or null if that channel is not measured.
      Parameters:
      channel - Channel index
      Returns:
      background data (magnitude squared, no corrections for FFT length, neg frequencies, etc.)