public class Distribution
extends Object
Entirely in memory, not intended as a good way to compute stats over large data sets.
Assumes you are giving it a non-empty set of data
Constructor and Description |
---|
Distribution(double[] data,
int startIdx,
int endIdx) |
Distribution(scala.collection.Traversable<Object> data) |
Modifier and Type | Method and Description |
---|---|
static scala.Option<Distribution> |
apply(scala.collection.Traversable<Object> data) |
double[] |
data() |
double[] |
defaultProbabilities() |
int |
endIdx() |
scala.collection.immutable.IndexedSeq<Object> |
getQuantiles(scala.collection.Traversable<Object> probabilities)
Get the value of the distribution at the given probabilities.
|
int |
length() |
void |
showQuantiles(java.io.PrintStream out) |
int |
startIdx() |
StatCounter |
statCounter() |
void |
summary(java.io.PrintStream out)
print a summary of this distribution to the given PrintStream.
|
public Distribution(double[] data, int startIdx, int endIdx)
public Distribution(scala.collection.Traversable<Object> data)
public static scala.Option<Distribution> apply(scala.collection.Traversable<Object> data)
public double[] data()
public int startIdx()
public int endIdx()
public int length()
public double[] defaultProbabilities()
public scala.collection.immutable.IndexedSeq<Object> getQuantiles(scala.collection.Traversable<Object> probabilities)
probabilities
- public void showQuantiles(java.io.PrintStream out)
public StatCounter statCounter()
public void summary(java.io.PrintStream out)
out
-