public class DoubleStatsValue extends Object implements Serializable
Constructor and Description |
---|
DoubleStatsValue() |
DoubleStatsValue(int valueSize) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double val)
Add a new value to stats
|
double |
getAverage()
Returns average
|
int |
getCount()
Return the count of values
|
double |
getMax()
Returns maximum
|
double |
getMin()
Returns minimum
|
double |
getTotal()
Returns total
|
double[] |
getValues()
Returns raw values
|
void |
incrementValue(int index,
double value)
Increments the value at index
|
String |
toString(String separator)
Returns values separated by comma
|
public DoubleStatsValue()
public DoubleStatsValue(int valueSize)
public void addValue(double val)
val
- valuepublic void incrementValue(int index, double value)
index
- value
- public double getMin()
public double getMax()
public double getTotal()
public double getAverage()
public double[] getValues()
public int getCount()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.