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