com.splout.db.benchmark
Class HistogramWithStats

java.lang.Object
  extended by com.splout.db.benchmark.PositiveHistogram
      extended by com.splout.db.benchmark.HistogramWithStats

public class HistogramWithStats
extends PositiveHistogram

A PositiveHistogram but that also keeps average, stdev, min and max values.


Field Summary
 
Fields inherited from class com.splout.db.benchmark.PositiveHistogram
buckets, count, upperLimit
 
Constructor Summary
HistogramWithStats()
           
HistogramWithStats(HistogramWithStats copy)
           
HistogramWithStats(int bits)
           
HistogramWithStats(int bits, double initialUpperLimit)
           
 
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 com.splout.db.benchmark.PositiveHistogram
bucketFor, getBuckets, getBucketSize, getCount, getLeftAccumulatedProbability, getNormalizedHistogram, getRigthAccumulatedProbability, getUpperLimit, resize, toTSV
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistogramWithStats

public HistogramWithStats(int bits,
                          double initialUpperLimit)

HistogramWithStats

public HistogramWithStats(int bits)

HistogramWithStats

public HistogramWithStats()

HistogramWithStats

public HistogramWithStats(HistogramWithStats copy)
Method Detail

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.