Package whistleDetector
Class BetterPeakDetector
java.lang.Object
PamguardMVC.PamProcess
whistleDetector.PeakDetector
whistleDetector.BasicPeakDetector
whistleDetector.BetterPeakDetector
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
-
Constructor Summary
ConstructorDescriptionBetterPeakDetector
(WhistleControl whistleControl, WhistleDetector whistleDetector, FFTDataBlock fftDataSource, int groupChannels) -
Method Summary
Modifier and TypeMethodDescriptionvoid
searchForPeaks
(PamObservable obs, FFTDataUnit newDataUnit) Methods inherited from class whistleDetector.BasicPeakDetector
getNumOutputDataBlocks
Methods inherited from class whistleDetector.PeakDetector
getDetectionChannel, getEqualisationConstants, getGroupChannels, getPeakDataBlock, newData, pamStart, pamStop, prepareProcess, setGroupChannels, setSampleRate
Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getObserverName, getObserverObject, getOfflineData, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessCheck, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setupProcess, toString, updateData
-
Constructor Details
-
BetterPeakDetector
public BetterPeakDetector(WhistleControl whistleControl, WhistleDetector whistleDetector, FFTDataBlock fftDataSource, int groupChannels)
-
-
Method Details
-
searchForPeaks
- Overrides:
searchForPeaks
in classPeakDetector
- Parameters:
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.
-
getPeakDetectorName
- Overrides:
getPeakDetectorName
in classBasicPeakDetector
-