public static final class Quantiles.ScaleAndIndexes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int[] |
indexes |
private int |
scale |
Modifier | Constructor and Description |
---|---|
private |
ScaleAndIndexes(int scale,
int[] indexes) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,java.lang.Double> |
compute(java.util.Collection<? extends java.lang.Number> dataset)
Computes the quantile values of the given dataset.
|
java.util.Map<java.lang.Integer,java.lang.Double> |
compute(double... dataset)
Computes the quantile values of the given dataset.
|
java.util.Map<java.lang.Integer,java.lang.Double> |
compute(int... dataset)
Computes the quantile values of the given dataset.
|
java.util.Map<java.lang.Integer,java.lang.Double> |
compute(long... dataset)
Computes the quantile values of the given dataset.
|
java.util.Map<java.lang.Integer,java.lang.Double> |
computeInPlace(double... dataset)
Computes the quantile values of the given dataset, performing the computation in-place.
|
public java.util.Map<java.lang.Integer,java.lang.Double> compute(java.util.Collection<? extends java.lang.Number> dataset)
dataset
- the dataset to do the calculation on, which must be non-empty, which will be
cast to doubles (with any associated lost of precision), and which will not be mutated by
this call (it is copied instead)public java.util.Map<java.lang.Integer,java.lang.Double> compute(double... dataset)
dataset
- the dataset to do the calculation on, which must be non-empty, which will not
be mutated by this call (it is copied instead)public java.util.Map<java.lang.Integer,java.lang.Double> compute(long... dataset)
dataset
- the dataset to do the calculation on, which must be non-empty, which will be
cast to doubles (with any associated lost of precision), and which will not be mutated by
this call (it is copied instead)public java.util.Map<java.lang.Integer,java.lang.Double> compute(int... dataset)
dataset
- the dataset to do the calculation on, which must be non-empty, which will be
cast to doubles, and which will not be mutated by this call (it is copied instead)public java.util.Map<java.lang.Integer,java.lang.Double> computeInPlace(double... dataset)
dataset
- the dataset to do the calculation on, which must be non-empty, and which will
be arbitrarily reordered by this method call