Package com.tdunning.math.stats
Class AbstractTDigest
- java.lang.Object
-
- com.tdunning.math.stats.TDigest
-
- com.tdunning.math.stats.AbstractTDigest
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AVLTreeDigest,MergingDigest
public abstract class AbstractTDigest extends TDigest
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractTDigest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double x)Adds a sample to a histogram.voidadd(TDigest other)Add all of the centroids of another TDigest to this one.protected CentroidcreateCentroid(double mean, int id)booleanisRecording()TDigestrecordAllData()Sets up so that all centroids will record all data assigned to them.-
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, size, smallByteSize
-
-
-
-
Method Detail
-
recordAllData
public TDigest recordAllData()
Sets up so that all centroids will record all data assigned to them. For testing only, really.- Specified by:
recordAllDatain classTDigest- Returns:
- This TDigest so that configurations can be done in fluent style.
-
isRecording
public boolean isRecording()
- Specified by:
isRecordingin classTDigest
-
add
public void add(double x)
Adds a sample to a histogram.
-
add
public void add(TDigest other)
Description copied from class:TDigestAdd all of the centroids of another TDigest to this one.
-
createCentroid
protected Centroid createCentroid(double mean, int id)
-
-