put(float) into the stream.
| Modifier and Type | Field and Description |
|---|---|
| public float | average
The average value (total / count) |
| public int | count
The amount of values added |
| public float | latest
The latest raw value |
| public float | max
The largest value |
| public final WindowedMean | mean
Provides access to the WindowedMean if any (can be null) |
| public float | min
The smallest value |
| public float | total
The sum of all values |
| public float | value
The current windowed mean value |
| Access | Constructor and Description |
|---|---|
| public | FloatCounter(int
The size of the mean window or 1 or below to not use a windowed mean. windowSize)Construct a new FloatCounter |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | reset()
Implements com. Reset all values to their default value. |
| public String |
| average | back to summary |
|---|---|
| public float average The average value (total / count) | |
| count | back to summary |
|---|---|
| public int count The amount of values added | |
| latest | back to summary |
|---|---|
| public float latest The latest raw value | |
| max | back to summary |
|---|---|
| public float max The largest value | |
| mean | back to summary |
|---|---|
| public final WindowedMean mean Provides access to the WindowedMean if any (can be null) | |
| min | back to summary |
|---|---|
| public float min The smallest value | |
| total | back to summary |
|---|---|
| public float total The sum of all values | |
| value | back to summary |
|---|---|
| public float value The current windowed mean value | |
| FloatCounter | back to summary |
|---|---|
| public FloatCounter(int windowSize) Construct a new FloatCounter
| |
| put | back to summary |
|---|---|
| public void put(float value) Add a value and update all fields.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements com. Reset all values to their default value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |