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:
Serializable
public class TDigestState extends AVLTreeDigest
Extension ofTDigestwith 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 doublecompression()Returns the current compression factor.booleanequals(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, smallByteSize
-
Methods inherited from class com.tdunning.math.stats.AbstractTDigest
add, add, createCentroid, isRecording
-
Methods inherited from class com.tdunning.math.stats.TDigest
createAvlTreeDigest, createDigest, createMergingDigest, getMax, getMin
-
-
-
-
Method Detail
-
compression
public double compression()
Description copied from class:TDigestReturns the current compression factor.- Overrides:
compressionin classAVLTreeDigest- Returns:
- The compression factor originally used to set up the TDigest.
-
write
public static void write(TDigestState state, StreamOutput out) throws IOException
- Throws:
IOException
-
read
public static TDigestState read(StreamInput in) throws IOException
- Throws:
IOException
-
-