Package ca.uqac.lif.cep.signal
Class WindowProcessor
java.lang.Object
ca.uqac.lif.cep.Processor
ca.uqac.lif.cep.SynchronousProcessor
ca.uqac.lif.cep.signal.WindowProcessor
- All Implemented Interfaces:
ca.uqac.lif.cep.Contextualizable,ca.uqac.lif.cep.Duplicable,ca.uqac.lif.cep.DuplicableProcessor
- Direct Known Subclasses:
PeakFinderLocalMaximum,PeakFinderTravelRise,PlateauFinder
public abstract class WindowProcessor
extends ca.uqac.lif.cep.SynchronousProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uqac.lif.cep.SynchronousProcessor
ca.uqac.lif.cep.SynchronousProcessor.InputPushable, ca.uqac.lif.cep.SynchronousProcessor.OutputPullableNested classes/interfaces inherited from class ca.uqac.lif.cep.Processor
ca.uqac.lif.cep.Processor.InternalProcessorState -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatThe maximum value encountered so farprotected floatThe minimum value encountered so farThe window of values to rememberprotected final intThe width of the window to processprotected static final doubleThe precision used to for the equality between double precision numbersFields inherited from class ca.uqac.lif.cep.SynchronousProcessor
m_inputPushables, m_outputPullables, m_tempQueueFields inherited from class ca.uqac.lif.cep.Processor
m_context, m_hasBeenNotifiedOfEndOfTrace, m_inputArity, m_inputPullables, m_inputQueues, m_notifiedEndOfTraceDownstream, m_outputArity, m_outputPushables, m_outputQueues, MAX_PULL_RETRIES, s_versionString -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Floatprotected static booleandoubleEquals(double d1, double d2) protected floatprotected floatvoidreset()Methods inherited from class ca.uqac.lif.cep.SynchronousProcessor
compute, getPullableOutput, getPushableInputMethods inherited from class ca.uqac.lif.cep.Processor
allNotifiedEndOfTrace, allNull, copyInputQueue, copyOutputQueue, duplicate, duplicate, duplicateInto, equals, getAt, getContext, getContext, getEmptyQueue, getId, getInputArity, getInputQueue, getInputType, getInputTypesFor, getOutputArity, getOutputQueue, getOutputType, getPullableInput, getPullableOutput, getPushableInput, getPushableOutput, hashCode, leftShift, newContext, onEndOfTrace, or, or, or, printState, readState, rightShift, setContext, setContext, setPullableInput, setPushableOutput, start, startAll, stop, stopAll
-
Field Details
-
s_precision
protected static final double s_precisionThe precision used to for the equality between double precision numbers- See Also:
-
m_values
The window of values to remember -
m_windowWidth
protected final int m_windowWidthThe width of the window to process -
m_maxValue
protected float m_maxValueThe maximum value encountered so far -
m_minValue
protected float m_minValueThe minimum value encountered so far
-
-
Constructor Details
-
WindowProcessor
public WindowProcessor() -
WindowProcessor
public WindowProcessor(int width)
-
-
Method Details
-
reset
public void reset()- Overrides:
resetin classca.uqac.lif.cep.Processor
-
getMaxValue
protected float getMaxValue() -
getMinValue
protected float getMinValue() -
doubleEquals
protected static boolean doubleEquals(double d1, double d2) -
computeOutputValue
-