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.percentiles.tdigest.TDigestState
-
- All Implemented Interfaces:
java.io.Serializable
public class TDigestState extends com.tdunning.math.stats.AVLTreeDigest
Extension ofTDigest
with custom serialization.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TDigestState(double compression)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
compression()
boolean
equals(java.lang.Object obj)
int
hashCode()
static TDigestState
read(StreamInput in)
static void
write(TDigestState state, StreamOutput out)
-
Methods inherited from class com.tdunning.math.stats.AbstractTDigest
add, add, createCentroid, isRecording
-
Methods inherited from class com.tdunning.math.stats.AVLTreeDigest
add, add, add, asBytes, asSmallBytes, byteSize, cdf, centroidCount, centroids, compress, fromBytes, quantile, recordAllData, size, smallByteSize
-
-
-
-
Method Detail
-
compression
public double compression()
- Overrides:
compression
in classcom.tdunning.math.stats.AVLTreeDigest
-
write
public static void write(TDigestState state, StreamOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public static TDigestState read(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-