Package crackers.kobots.parts
Class SimpleAverageMeasurement
-
- All Implemented Interfaces:
public final class SimpleAverageMeasurementCaptures data in a simple FIFO buffer for averaging. Probably not suitable for large sizes.
-
-
Field Summary
Fields Modifier and Type Field Description private final Floatvalueprivate final IntegerbucketSizeprivate final FloatinitialValue
-
Constructor Summary
Constructors Constructor Description SimpleAverageMeasurement(Integer bucketSize, Float initialValue)
-
Method Summary
Modifier and Type Method Description final FloatgetValue()final IntegergetBucketSize()final FloatgetInitialValue()final UnitplusAssign(Float v)-
-
Method Detail
-
getBucketSize
final Integer getBucketSize()
-
getInitialValue
final Float getInitialValue()
-
plusAssign
final Unit plusAssign(Float v)
-
-
-
-