public class BetterPeakDetector extends BasicPeakDetector
Constructor and Description |
---|
BetterPeakDetector(WhistleControl whistleControl,
WhistleDetector whistleDetector,
FFTDataBlock fftDataSource,
int groupChannels) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPeakDetectorName() |
void |
searchForPeaks(PamObservable obs,
FFTDataUnit newDataUnit) |
getNumOutputDataBlocks
getDetectionChannel, getEqualisationConstants, getGroupChannels, getPeakDataBlock, newData, pamStart, pamStop, prepareProcess, setGroupChannels, setSampleRate
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCpuPercent, getNumAnnotations, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, processNewBuoyData, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setupProcess, toString, update, updateData
public BetterPeakDetector(WhistleControl whistleControl, WhistleDetector whistleDetector, FFTDataBlock fftDataSource, int groupChannels)
public void searchForPeaks(PamObservable obs, FFTDataUnit newDataUnit)
searchForPeaks
in class PeakDetector
obs
- PamObservable - always a PamDataBlocknewDataUnit
- The latest PamDataUnit added to the PamDataBlock
Takes a new block of FFT data and creates a series of peaks based on
parts of the sectrum being above some threshold. Rather than add
individual peaks to the output data block, the peaks are stored in a new
ArrayList and the array list is added to the output block.
This reduces the amount of traffic to the output blocks listeners and
will make it easier for the process linking the peaks to navigate between
successive peak slices.public java.lang.String getPeakDetectorName()
getPeakDetectorName
in class BasicPeakDetector