com.splout.db.benchmark
Class HistogramWithStats
java.lang.Object
com.splout.db.benchmark.PositiveHistogram
com.splout.db.benchmark.HistogramWithStats
public class HistogramWithStats
- extends PositiveHistogram
A PositiveHistogram
but that also keeps average, stdev, min and max values.
Method Summary |
void |
add(double value)
Add a new value to the histogram |
double |
getAccum()
|
double |
getAverage()
|
double |
getMax()
Return the maximun value |
double |
getMin()
Return the minimun value |
double |
getStdev()
Returns the stdev. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HistogramWithStats
public HistogramWithStats(int bits,
double initialUpperLimit)
HistogramWithStats
public HistogramWithStats(int bits)
HistogramWithStats
public HistogramWithStats()
HistogramWithStats
public HistogramWithStats(HistogramWithStats copy)
add
public void add(double value)
- Description copied from class:
PositiveHistogram
- Add a new value to the histogram
- Overrides:
add
in class PositiveHistogram
getAverage
public double getAverage()
getAccum
public double getAccum()
getStdev
public double getStdev()
- Returns the stdev.
getMax
public double getMax()
- Return the maximun value
getMin
public double getMin()
- Return the minimun value
Copyright © 2012-2013 Datasalt Systems S.L.. All Rights Reserved.