Package ca.uqac.lif.cep.signal
Class Smooth.ArrayAverage
java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.signal.Smooth.ArrayAverage
- All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable,ca.uqac.lif.cep.functions.DuplicableFunction
- Enclosing class:
Smooth
protected static class Smooth.ArrayAverage
extends ca.uqac.lif.cep.functions.Function
Computes the average of values in an array
-
Field Summary
FieldsFields inherited from class ca.uqac.lif.cep.functions.Function
s_maxInputArity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionduplicate(boolean with_state) voidintvoidgetInputTypesFor(Set<Class<?>> classes, int index) intClass<?> getOutputTypeFor(int index) voidreset()Methods inherited from class ca.uqac.lif.cep.functions.Function
duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, printState, readState
-
Field Details
-
m_width
protected int m_widthThe input arity of this function
-
-
Constructor Details
-
ArrayAverage
public ArrayAverage(int width)
-
-
Method Details
-
duplicate
- Specified by:
duplicatein interfaceca.uqac.lif.cep.Duplicable- Specified by:
duplicatein classca.uqac.lif.cep.functions.Function
-
evaluate
- Specified by:
evaluatein classca.uqac.lif.cep.functions.Function
-
getInputArity
public int getInputArity()- Specified by:
getInputArityin classca.uqac.lif.cep.functions.Function
-
getOutputArity
public int getOutputArity()- Specified by:
getOutputArityin classca.uqac.lif.cep.functions.Function
-
reset
public void reset()- Overrides:
resetin classca.uqac.lif.cep.functions.Function
-
getInputTypesFor
- Specified by:
getInputTypesForin classca.uqac.lif.cep.functions.Function
-
getOutputTypeFor
- Specified by:
getOutputTypeForin classca.uqac.lif.cep.functions.Function
-