|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamguardMVC.PamProcess
whistleDetector.PeakDetector
whistleDetector.BasicPeakDetector
whistleDetector.BetterPeakDetector
public class BetterPeakDetector
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class whistleDetector.PeakDetector |
|---|
PeakDetector.PeakStatus |
| Field Summary | |
|---|---|
(package private) double[] |
localAverage
|
(package private) double[] |
magSquareData
|
| Fields inherited from class whistleDetector.PeakDetector |
|---|
bgndUpdate0, bgndUpdate0_1, bgndUpdate1, bgndUpdate1_1, detectionThreshold, fftDataSource, freqGrad, nrData, overThreshold, peakDataBlock, searchBin0, searchBin1, slicesAnalysed, spectrumAverage, WARMUP_SLICES, whistleControl, whistleDetector |
| Fields inherited from class PamguardMVC.PamProcess |
|---|
outputDataBlocks, processName, sampleRate |
| Constructor Summary | |
|---|---|
BetterPeakDetector(WhistleControl whistleControl,
WhistleDetector whistleDetector,
FFTDataBlock fftDataSource,
int groupChannels)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getPeakDetectorName()
|
void |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
double[] localAverage
double[] magSquareData
| Constructor Detail |
|---|
public BetterPeakDetector(WhistleControl whistleControl,
WhistleDetector whistleDetector,
FFTDataBlock fftDataSource,
int groupChannels)
| Method Detail |
|---|
public void searchForPeaks(PamObservable obs,
FFTDataUnit newDataUnit)
searchForPeaks in class PeakDetectorobs - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||