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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(PamDataBlock pamDataBlock, int annotation) Get an Annotationint
int
int
getNumAnnotations
(PamDataBlock pamDataBlock) void
newData
(PamObservable o, PamDataUnit arg) void
void
pamStart()
Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).void
pamStop()
Stops the process.void
setParentDataBlock
(PamDataBlock newParentDataBlock) Set a parent data block with the default options of rethreading if setvoid
called 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:
noteNewSettings
in interfacePamObserver
- Overrides:
noteNewSettings
in classPamProcess
-
setParentDataBlock
Description copied from class:PamProcess
Set a parent data block with the default options of rethreading if set- Overrides:
setParentDataBlock
in classPamProcess
- Parameters:
newParentDataBlock
- source data block.
-
setupProcess
public void setupProcess()Description copied from class:PamProcess
called 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:
setupProcess
in classPamProcess
-
newData
- Overrides:
newData
in classPamProcess
-
pamStart
public void pamStart()Description copied from class:PamProcess
Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Specified by:
pamStart
in classPamProcess
-
pamStop
public void pamStop()Description copied from class:PamProcess
Stops the process.- Specified by:
pamStop
in classPamProcess
-
getFftHop
public int getFftHop() -
getFftLength
public int getFftLength() -
getAnnotation
Description copied from interface:ProcessAnnotator
Get an Annotation- Specified by:
getAnnotation
in interfaceProcessAnnotator
- Overrides:
getAnnotation
in classPamProcess
- Parameters:
pamDataBlock
- Annotated datablockannotation
- annotation number- Returns:
- Annotation
-
getNumAnnotations
- Specified by:
getNumAnnotations
in interfaceProcessAnnotator
- Overrides:
getNumAnnotations
in classPamProcess
- Parameters:
pamDataBlock
- Annotated datablock- Returns:
- the number of annotations
-