public class NumStats extends Object implements Serializable
| Constructor and Description |
|---|
NumStats() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double arg)
Adds a double to the stat.
|
void |
add(int arg)
Adds an int to the stat.
|
void |
add(long arg)
Adds a long to the stat.
|
static void |
main(String[] args)
A test routine.
|
double |
max()
Returns the max as a double.
|
double |
mean()
Returns the mean as a double.
|
double |
min()
Returns the min as a double.
|
String |
printStatsAsTimes()
Returns min, max, mean considered as times in milliseconds, as a string.
|
public void add(double arg)
public void add(int arg)
public void add(long arg)
public double min()
public double max()
public double mean()
public String printStatsAsTimes()
public static void main(String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.