Package Spectrogram
Class SpectrumBackgrounds
java.lang.Object
Spectrogram.SpectrumBackgrounds
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondouble[]copyBackground(int channel) Get the background for a channel, or null if that channel is not measured.intbooleanprepareS(double timeConstSecs) Prepare a set of background measurements using the set channel mapbooleanprepareS(int channelMap, double timeConstSecs) Prepare a set of background measurements for the given channel mapvoidprocess(FFTDataUnit fftDataUnit) Process an FFT data unit. 
- 
Constructor Details
- 
SpectrumBackgrounds
 
 - 
 - 
Method Details
- 
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 maptimeConstSecs- 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
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.)
 
 
 -