Class DubboAbstractTDigest
java.lang.Object
com.tdunning.math.stats.TDigest
org.apache.dubbo.metrics.aggregate.DubboAbstractTDigest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DubboMergingDigest
public abstract class DubboAbstractTDigest
extends com.tdunning.math.stats.TDigest
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.tdunning.math.stats.TDigest
add, add, asBytes, asSmallBytes, byteSize, cdf, centroidCount, centroids, compress, compression, createAvlTreeDigest, createDigest, createMergingDigest, getMax, getMin, quantile, setScaleFunction, size, smallByteSize
-
Constructor Details
-
DubboAbstractTDigest
public DubboAbstractTDigest()
-
-
Method Details
-
recordAllData
public com.tdunning.math.stats.TDigest recordAllData()Sets up so that all centroids will record all data assigned to them. For testing only, really.- Specified by:
recordAllDatain classcom.tdunning.math.stats.TDigest
-
isRecording
public boolean isRecording()- Specified by:
isRecordingin classcom.tdunning.math.stats.TDigest
-
add
public void add(double x) Adds a sample to a histogram.- Specified by:
addin classcom.tdunning.math.stats.TDigest- Parameters:
x- The value to add.
-
add
public void add(com.tdunning.math.stats.TDigest other) - Specified by:
addin classcom.tdunning.math.stats.TDigest
-