Class NormalizerProcess
java.lang.Object
PamguardMVC.PamProcess
likelihoodDetectionModule.normalizer.NormalizerProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
This PamProcess implements the normalizer of the likelihood detector.  The user can select either a DecayingAverage
  (exponential), or SplitWindow algorithm.
  
  Using the signal/background time constants from the bands passed in, the normalizer produces an estimate of the
  signal/background levels present in the input spectral band data.
- Author:
 - Dave Flogeras
 
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
ConstructorsConstructorDescriptionNormalizerProcess(LikelihoodDetectionUnit ldu, PamDataBlock pdb, double referenceGain, NormalizerProcess.NormalizerAlgorithm normalizer, ArrayList<SignalBand> signalBands, ArrayList<GuardBand> guardBands, double timeResolution)  - 
Method Summary
Modifier and TypeMethodDescriptionlongvoidnewData(PamObservable o, PamDataUnit unit) voidpamStart()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.voidCalled for each process before any of them receive the PamStart commandvoidsetSampleRate(float sampleRate, boolean notify) New sample rateMethods 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, getRawSourceDataBlock, getRawSourceDataBlock, 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
- 
NormalizerProcess
public NormalizerProcess(LikelihoodDetectionUnit ldu, PamDataBlock pdb, double referenceGain, NormalizerProcess.NormalizerAlgorithm normalizer, ArrayList<SignalBand> signalBands, ArrayList<GuardBand> guardBands, double timeResolution)  
 - 
 - 
Method Details
- 
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
 - 
getProcessName
- Overrides:
 getProcessNamein classPamProcess- Returns:
 - Name of the PamProcess
 
 - 
prepareProcess
public void prepareProcess()Description copied from class:PamProcessCalled for each process before any of them receive the PamStart command- Overrides:
 prepareProcessin classPamProcess
 - 
newData
- Overrides:
 newDatain classPamProcess
 - 
getRequiredDataHistory
- Specified by:
 getRequiredDataHistoryin interfacePamObserver- Overrides:
 getRequiredDataHistoryin classPamProcess- Parameters:
 arg- optional argument from PamObservable- Returns:
 - time in milliseconds required by data held in PamObservable
 
 - 
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserverNew sample rate- Specified by:
 setSampleRatein interfacePamObserver- Overrides:
 setSampleRatein classPamProcess- Parameters:
 sampleRate-notify- Notify other PamObservers and PamObservables in the chain.
 
 -