public static class TDigest.Group extends Object implements Comparable<TDigest.Group>
Constructor and Description |
---|
Group(double x) |
Group(double x,
int id) |
Group(double x,
int id,
boolean record) |
Modifier and Type | Method and Description |
---|---|
void |
add(double x,
int w) |
int |
compareTo(TDigest.Group o) |
int |
count() |
static TDigest.Group |
createWeighted(double x,
int w,
Iterable<? extends Double> data) |
Iterable<? extends Double> |
data() |
int |
hashCode() |
int |
id() |
double |
mean() |
String |
toString() |
public Group(double x)
public Group(double x, int id)
public Group(double x, int id, boolean record)
public void add(double x, int w)
public double mean()
public int count()
public int id()
public int compareTo(TDigest.Group o)
compareTo
in interface Comparable<TDigest.Group>
public static TDigest.Group createWeighted(double x, int w, Iterable<? extends Double> data)
Copyright © 2019. All rights reserved.