org.smallmind.instrument
Class Snapshot

java.lang.Object
  extended by org.smallmind.instrument.Snapshot
All Implemented Interfaces:
Ranking

public class Snapshot
extends Object
implements Ranking


Constructor Summary
Snapshot(Collection<Long> values)
           
Snapshot(double[] values)
           
 
Method Summary
 double get75thPercentile()
           
 double get95thPercentile()
           
 double get98thPercentile()
           
 double get999thPercentile()
           
 double get99thPercentile()
           
 double getMedian()
           
 double getValue(double quantile)
           
 double[] getValues()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Snapshot

public Snapshot(Collection<Long> values)

Snapshot

public Snapshot(double[] values)
Method Detail

getValue

public double getValue(double quantile)

size

public int size()

getMedian

public double getMedian()
Specified by:
getMedian in interface Ranking

get75thPercentile

public double get75thPercentile()
Specified by:
get75thPercentile in interface Ranking

get95thPercentile

public double get95thPercentile()
Specified by:
get95thPercentile in interface Ranking

get98thPercentile

public double get98thPercentile()
Specified by:
get98thPercentile in interface Ranking

get99thPercentile

public double get99thPercentile()
Specified by:
get99thPercentile in interface Ranking

get999thPercentile

public double get999thPercentile()
Specified by:
get999thPercentile in interface Ranking

getValues

public double[] getValues()
Specified by:
getValues in interface Ranking


Copyright © 2012. All Rights Reserved.