Class TDigestState
java.lang.Object
com.tdunning.math.stats.TDigest
com.tdunning.math.stats.AbstractTDigest
com.tdunning.math.stats.AVLTreeDigest
org.elasticsearch.search.aggregations.metrics.TDigestState
- All Implemented Interfaces:
java.io.Serializable
public class TDigestState
extends com.tdunning.math.stats.AVLTreeDigest
Extension of
TDigest with custom serialization.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TDigestState(double compression) -
Method Summary
Modifier and Type Method Description doublecompression()booleanequals(java.lang.Object obj)inthashCode()static TDigestStateread(StreamInput in)static voidwrite(TDigestState state, StreamOutput out)Methods inherited from class com.tdunning.math.stats.AVLTreeDigest
add, add, add, asBytes, asSmallBytes, byteSize, cdf, centroidCount, centroids, compress, fromBytes, quantile, recordAllData, size, smallByteSizeMethods inherited from class com.tdunning.math.stats.AbstractTDigest
add, add, createCentroid, isRecording
-
Constructor Details
-
TDigestState
public TDigestState(double compression)
-
-
Method Details
-
compression
public double compression()- Overrides:
compressionin classcom.tdunning.math.stats.AVLTreeDigest
-
write
- Throws:
java.io.IOException
-
read
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-