public class FloatCounter
extends java.lang.Object
put(float) into the stream.| Modifier and Type | Field and Description |
|---|---|
float |
average
The average value (total / count)
|
int |
count
The amount of values added
|
float |
latest
The latest raw value
|
float |
max
The largest value
|
WindowedMean |
mean
Provides access to the WindowedMean if any (can be null)
|
float |
min
The smallest value
|
float |
total
The sum of all values
|
float |
value
The current windowed mean value
|
| Constructor and Description |
|---|
FloatCounter(int windowSize)
Construct a new FloatCounter
|
| Modifier and Type | Method and Description |
|---|---|
void |
put(float value)
Add a value and update all fields.
|
void |
reset()
Reset all values to their default value.
|
public int count
public float total
public float min
public float max
public float average
public float latest
public float value
public final WindowedMean mean