Top Constructors Methods
org.terracotta.statistics.derived.histogram

public Class StripedHistogram

extends Striped<BarSplittingBiasedHistogram>
implements Histogram
Class Inheritance
All Implemented Interfaces
org.terracotta.statistics.derived.histogram.Histogram
Imports
java.util.ArrayList, .Collections, .Comparator, .Iterator, .LinkedList, .List, .ListIterator

Constructor Summary

AccessConstructor and Description
public
StripedHistogram(double maxCoefficient, double phi, int expansionFactor, int bucketCount, double barEpsilon, long window)

public
StripedHistogram(int bucketCount, long window)

public
StripedHistogram(double phi, int bucketCount, long window)

Method Summary

Modifier and TypeMethod and Description
private double[]
evaluateQuantileFromMax(double quantile)

private double[]
evaluateQuantileFromMin(double quantile)

public void
public void
private static List<double[]>
flatten(double[] a, double[] b)

public List<Histogram.Bucket>
public double[]
getQuantileBounds(double
desired quantile
quantile
)

Implements org.terracotta.statistics.derived.histogram.Histogram.getQuantileBounds.

Returns the bounds [minimum, maximum) on the given quantile.
public double[]
pack-priv static void
mergeBars(List<double[]> bars)

public long
Inherited from org.terracotta.statistics.derived.histogram.Striped:
advanceProbeprocessstreamtoString

Constructor Detail

StripedHistogramback to summary
public StripedHistogram(double maxCoefficient, double phi, int expansionFactor, int bucketCount, double barEpsilon, long window)
StripedHistogramback to summary
public StripedHistogram(int bucketCount, long window)
StripedHistogramback to summary
public StripedHistogram(double phi, int bucketCount, long window)

Method Detail

evaluateQuantileFromMaxback to summary
private double[] evaluateQuantileFromMax(double quantile)
evaluateQuantileFromMinback to summary
private double[] evaluateQuantileFromMin(double quantile)
eventback to summary
public void event(double value, long time)

Implements org.terracotta.statistics.derived.histogram.Histogram.event.

Annotations
@Override
expireback to summary
public void expire(long time)

Implements org.terracotta.statistics.derived.histogram.Histogram.expire.

Annotations
@Override
flattenback to summary
private static List<double[]> flatten(double[] a, double[] b)
getBucketsback to summary
public List<Histogram.Bucket> getBuckets()

Implements org.terracotta.statistics.derived.histogram.Histogram.getBuckets.

Doc from org.terracotta.statistics.derived.histogram.Histogram.getBuckets.

Returns the histograms buckets

Returns:List<Histogram.Bucket>

the histogram buckets

Annotations
@Override
getQuantileBoundsback to summary
public double[] getQuantileBounds(double quantile)

Implements org.terracotta.statistics.derived.histogram.Histogram.getQuantileBounds.

Doc from org.terracotta.statistics.derived.histogram.Histogram.getQuantileBounds.

Returns the bounds [minimum, maximum) on the given quantile.

Parameters
quantile:double

desired quantile

Returns:double[]

the quantile bounds

Annotations
@Override
getSizeBoundsback to summary
public double[] getSizeBounds()

Implements org.terracotta.statistics.derived.histogram.Histogram.getSizeBounds.

Returns:double[]

Doc from org.terracotta.statistics.derived.histogram.Histogram.getSizeBounds.

the bounds on the number of elements in the histogram

Annotations
@Override
mergeBarsback to summary
pack-priv static void mergeBars(List<double[]> bars)
sizeback to summary
public long size()

Implements org.terracotta.statistics.derived.histogram.Histogram.size.

Returns:long

Doc from org.terracotta.statistics.derived.histogram.Histogram.size.

the number of elements in the histogram

Annotations
@Override