public abstract class AbstractTDigest extends TDigest
Modifier and Type | Field and Description |
---|---|
protected Random |
gen |
protected boolean |
recordAllData |
Constructor and Description |
---|
AbstractTDigest() |
Modifier and Type | Method and Description |
---|---|
void |
add(double x)
Adds a sample to a histogram.
|
void |
add(TDigest other)
Add all of the centroids of another TDigest to this one.
|
abstract void |
compress(GroupTree other) |
protected Centroid |
createCentroid(double mean,
int id) |
static int |
decode(ByteBuffer buf) |
static void |
encode(ByteBuffer buf,
int n) |
static double |
interpolate(double x,
double x0,
double x1) |
boolean |
isRecording() |
protected static TDigest |
merge(Iterable<TDigest> subData,
Random gen,
TDigest r) |
TDigest |
recordAllData()
Sets up so that all centroids will record all data assigned to them.
|
add, asBytes, asSmallBytes, byteSize, cdf, centroidCount, centroids, checkValue, compress, compression, createArrayDigest, createArrayDigest, createTreeDigest, quantile, size, smallByteSize
protected Random gen
protected boolean recordAllData
public static double interpolate(double x, double x0, double x1)
public static void encode(ByteBuffer buf, int n)
public static int decode(ByteBuffer buf)
public abstract void compress(GroupTree other)
public TDigest recordAllData()
recordAllData
in class TDigest
public boolean isRecording()
isRecording
in class TDigest
public void add(double x)
public void add(TDigest other)
TDigest
protected Centroid createCentroid(double mean, int id)
Copyright © 2015. All rights reserved.