|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbb.util.Benchmark.Stats
public static class Benchmark.Stats
Holds execution time statistics.
Every time field has these features:
checkTimeValue
Field Summary | |
---|---|
protected double |
mean
Arithmetic mean of the execution time. |
protected double |
meanLower
Lower bound for mean 's confidence interval. |
protected double |
meanUpper
Upper bound for the mean 's confidence interval. |
protected double |
sd
Standard deviation of the execution time. |
protected String |
sdIssues
Records any issues with the standard deviation. |
protected double |
sdLower
Lower bound for the standard deviation 's confidence interval. |
protected double |
sdUpper
Upper bound for the standard deviation 's confidence interval. |
Constructor Summary | |
---|---|
Benchmark.Stats(double mean,
double meanLower,
double meanUpper,
double sd,
double sdLower,
double sdUpper,
String sdIssues)
Constructor. |
Method Summary | |
---|---|
protected void |
checkTimeValue(double t,
String name)
Checks that t is a valid time value. |
protected long |
cMaxSolver(double a,
double muB,
double sigmaB,
double muA,
double sigmaG,
double x)
See the "Computer algorithm" subsection of the article supplement for more details. |
protected String |
diagnoseSdOfActions(double a)
See the "Standard deviation outlier model" section of the article supplement for more details. |
Benchmark.Stats |
forActions(long a)
Calculates action statistics from block statistics. |
double |
getMean()
Accessor for mean . |
double |
getMeanLower()
Accessor for meanLower . |
double |
getMeanUpper()
Accessor for meanUpper . |
double |
getSd()
Accessor for sd . |
String |
getSdIssues()
Accessor for sdIssues . |
double |
getSdLower()
Accessor for sdLower . |
double |
getSdUpper()
Accessor for sdUpper . |
String |
toString()
|
protected String |
toStringCi(double d,
double lower,
double upper)
Returns a String description of the confidence interval specified by the parameters. |
protected double |
varianceOutliers(double a,
double sigmaB,
double sigmaG,
double c)
See the Equation (45) of the article supplement for more details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double mean
protected double meanLower
mean
's confidence interval.
protected double meanUpper
mean
's confidence interval.
protected double sd
protected double sdLower
standard deviation
's confidence interval.
protected double sdUpper
standard deviation
's confidence interval.
protected String sdIssues
Contract: either null
else is nonblank.
Constructor Detail |
---|
public Benchmark.Stats(double mean, double meanLower, double meanUpper, double sd, double sdLower, double sdUpper, String sdIssues) throws IllegalStateException
IllegalStateException
- if any parameter violates the contract of the field it is assigned toMethod Detail |
---|
protected void checkTimeValue(double t, String name) throws IllegalStateException
IllegalStateException
- if t is NaN, infinite, or < 0public double getMean()
mean
.
public double getMeanLower()
meanLower
.
public double getMeanUpper()
meanUpper
.
public double getSd()
sd
.
public double getSdLower()
sdLower
.
public double getSdUpper()
sdUpper
.
public String getSdIssues()
sdIssues
.
public Benchmark.Stats forActions(long a) throws IllegalArgumentException
See the "Block statistics versus action statistics" section of the article supplement for more details.
IllegalArgumentException
- if a <= 0protected String diagnoseSdOfActions(double a)
protected long cMaxSolver(double a, double muB, double sigmaB, double muA, double sigmaG, double x)
protected double varianceOutliers(double a, double sigmaB, double sigmaG, double c)
public String toString()
toString
in class Object
protected String toStringCi(double d, double lower, double upper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |