Package KernelSmoothing
Class KernelSmoothingProcess
java.lang.Object
PamguardMVC.PamProcess
KernelSmoothing.KernelSmoothingProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
- Author:
 - Doug Gillespie Class to smooth out a spectrogram using a Gaussian smoothing kernel Currently fixed to be 3 by 3, but could have others in the future. 29 October, 2008, Added phase information back into smoothed output so that whistle detector can use the smoothed data to estimate bearings to detected whistles
 
- 
Field Summary
FieldsFields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, sampleRate - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation(PamDataBlock pamDataBlock, int annotation) Get an AnnotationintintintgetNumAnnotations(PamDataBlock pamDataBlock) voidnewData(PamObservable o, PamDataUnit arg) voidvoidpamStart()Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).voidpamStop()Stops the process.voidsetParentDataBlock(PamDataBlock newParentDataBlock) Set a parent data block with the default options of rethreading if setvoidcalled for every process once the systemmodel has been created.Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, 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, notifyModelChanged, prepareProcess, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setProcessCheck, setProcessName, setSampleRate, toString, updateData 
- 
Field Details
- 
processType
- See Also:
 
 - 
processName
- See Also:
 
 
 - 
 - 
Constructor Details
- 
KernelSmoothingProcess
 
 - 
 - 
Method Details
- 
noteNewSettings
public void noteNewSettings()- Specified by:
 noteNewSettingsin interfacePamObserver- Overrides:
 noteNewSettingsin classPamProcess
 - 
setParentDataBlock
Description copied from class:PamProcessSet a parent data block with the default options of rethreading if set- Overrides:
 setParentDataBlockin classPamProcess- Parameters:
 newParentDataBlock- source data block.
 - 
setupProcess
public void setupProcess()Description copied from class:PamProcesscalled for every process once the systemmodel has been created. this is a good time to check out and find input data blocks and similar tasks.- Overrides:
 setupProcessin classPamProcess
 - 
newData
- Overrides:
 newDatain classPamProcess
 - 
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).- Specified by:
 pamStartin classPamProcess
 - 
pamStop
public void pamStop()Description copied from class:PamProcessStops the process.- Specified by:
 pamStopin classPamProcess
 - 
getFftHop
public int getFftHop() - 
getFftLength
public int getFftLength() - 
getAnnotation
Description copied from interface:ProcessAnnotatorGet an Annotation- Specified by:
 getAnnotationin interfaceProcessAnnotator- Overrides:
 getAnnotationin classPamProcess- Parameters:
 pamDataBlock- Annotated datablockannotation- annotation number- Returns:
 - Annotation
 
 - 
getNumAnnotations
- Specified by:
 getNumAnnotationsin interfaceProcessAnnotator- Overrides:
 getNumAnnotationsin classPamProcess- Parameters:
 pamDataBlock- Annotated datablock- Returns:
 - the number of annotations
 
 
 -