Class StreamFunctions.Average
java.lang.Object
com.fluxtion.ext.streaming.api.stream.StreamFunctions.Average
- All Implemented Interfaces:
Stateful
,Stateful.StatefulNumber<StreamFunctions.Average>
- Enclosing class:
- StreamFunctions
public static class StreamFunctions.Average extends java.lang.Object implements Stateful.StatefulNumber<StreamFunctions.Average>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fluxtion.ext.streaming.api.Stateful
Stateful.StatefulNumber<S>
-
Constructor Summary
Constructors Constructor Description Average()
-
Method Summary
Modifier and Type Method Description double
addValue(double val)
void
combine(StreamFunctions.Average other, MutableNumber result)
void
deduct(StreamFunctions.Average other, MutableNumber result)
void
reset()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fluxtion.ext.streaming.api.Stateful
combine, deduct, setBucketCount
-
Constructor Details
-
Average
public Average()
-
-
Method Details
-
addValue
public double addValue(double val) -
reset
public void reset() -
combine
- Specified by:
combine
in interfaceStateful.StatefulNumber<StreamFunctions.Average>
-
deduct
- Specified by:
deduct
in interfaceStateful.StatefulNumber<StreamFunctions.Average>
-