Package IshmaelDetector
Class SgramCorrProcess
java.lang.Object
PamguardMVC.PamProcess
IshmaelDetector.IshDetFnProcess
IshmaelDetector.SgramCorrProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
This implements the spectrogram correlation detector.
 See Mellinger and Clark, J. Acoust. Soc. Am. 107(6):3518-3529 (2000).
- Author:
 - Dave Mellinger and Hisham Qayum
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassInformation specific to each channel. - 
Field Summary
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
ConstructorsConstructorDescriptionSgramCorrProcess(SgramCorrControl sgramCorrControl, PamDataBlock parentDataBlock)  - 
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatdoublegramDotProd(double[][] ker, double[][] gram, int startI) doublehat(double x) The derivative of the Gaussian function -- i.e., the 'Mexican hat' function -- with mean 0 and variance 1.voidmakeKernel(SgramCorrParams p, double sRate, double fRate, int gramHeight) Create a spectrogram correlation kernel.voidnewData(PamObservable o, PamDataUnit arg1) voidpamStart()Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).protected voidvoidMethods inherited from class IshmaelDetector.IshDetFnProcess
getChannelMap, getInputDataBlock, getOutputDataBlock, getOutputDataUnit, pamStop, prepareProcess, setSampleRate, setupConnectionsMethods 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, getNumOutputDataBlocks, 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
- 
SgramCorrProcess
 
 - 
 - 
Method Details
- 
getLongName
- Specified by:
 getLongNamein classIshDetFnProcess
 - 
getNumberName
 - 
inputDataClass
- Specified by:
 inputDataClassin classIshDetFnProcess
 - 
getDetSampleRate
public float getDetSampleRate()- Specified by:
 getDetSampleRatein classIshDetFnProcess
 - 
prepareMyParams
protected void prepareMyParams()- Overrides:
 prepareMyParamsin classIshDetFnProcess
 - 
makeKernel
Create a spectrogram correlation kernel.- Parameters:
 SgramCorrParams- p -- defines what the kernel is shaped likedouble- sRate -- sample ratedouble- fRate -- frame rate of the spectrogram (slices/s)int- gramHeight -- in cells; equal to FFT size / 2
 - 
getHiFreq
public float getHiFreq()- Specified by:
 getHiFreqin classIshDetFnProcess- Returns:
 - the highest frequency of the detection - e.g. sampleRate/2 or the upper bound of the detection kernel
 
 - 
getLoFreq
public float getLoFreq()- Specified by:
 getLoFreqin classIshDetFnProcess- Returns:
 - the lowest frequency of the detection - e.g. 0 or the lower bound of the detection kernel
 
 - 
hat
public double hat(double x) The derivative of the Gaussian function -- i.e., the 'Mexican hat' function -- with mean 0 and variance 1. - 
newData
- Overrides:
 newDatain classPamProcess
 - 
gramDotProd
public double gramDotProd(double[][] ker, double[][] gram, int startI)  - 
renewPerChannelInfo
public void renewPerChannelInfo() - 
pamStart
public void pamStart()Description copied from class:PamProcessCalled for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Overrides:
 pamStartin classIshDetFnProcess
 
 -