Package Spectrogram
Class SpectrumBackgrounds
java.lang.Object
Spectrogram.SpectrumBackgrounds
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
copyBackground
(int channel) Get the background for a channel, or null if that channel is not measured.int
boolean
prepareS
(double timeConstSecs) Prepare a set of background measurements using the set channel mapboolean
prepareS
(int channelMap, double timeConstSecs) Prepare a set of background measurements for the given channel mapvoid
process
(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.)
-