public class SortQuantiler extends Object implements Quantiler
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_BLOCKSIZE
Default block size.
|
Constructor and Description |
---|
SortQuantiler()
Constructor with default block size.
|
SortQuantiler(int blocksize)
Constructor with supplied block size.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptDatum(double value)
Accepts a value to accumulate for quantile calculations.
|
void |
addQuantiler(Quantiler o)
Merges the state of another compatible accumulator into this one;
the effect is as if all the
Quantiler.acceptDatum(double) calls that were
made on other had been made on this one. |
double |
getValueAtQuantile(double quantile)
Returns the value at a given quantile.
|
void |
ready()
Call after all data has been accumulated and before quantiles are
to be calculated.
|
public static final int DFLT_BLOCKSIZE
public SortQuantiler()
public SortQuantiler(int blocksize)
blocksize
- tuning parameter, block size in bytespublic void acceptDatum(double value)
Quantiler
acceptDatum
in interface Quantiler
value
- value to accumulatepublic void addQuantiler(Quantiler o)
Quantiler
Quantiler.acceptDatum(double)
calls that were
made on other
had been made on this one.addQuantiler
in interface Quantiler
o
- compatible quantiler to merge with thispublic void ready()
Quantiler
public double getValueAtQuantile(double quantile)
Quantiler
getValueAtQuantile
in interface Quantiler
quantile
- value in the range 0..1Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.