public class RSSQuantiles extends Object implements IQuantiles<Double>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
CANT_ESTIMATE |
static int |
ELEMENTS_PER_BUCKET |
| Constructor and Description |
|---|
RSSQuantiles(float epsilon,
float delta,
int maxValue)
The constructor invokes all data-structure creation
|
| Modifier and Type | Method and Description |
|---|---|
int |
getElementsPerBucket() |
int |
getMaxBucketCount() |
Double |
getQuantile(double q) |
void |
offer(Double value) |
void |
setElementsPerBucket(int newCount) |
void |
setMaxBucketCount(int newCount) |
public static final int CANT_ESTIMATE
public static int ELEMENTS_PER_BUCKET
public RSSQuantiles(float epsilon,
float delta,
int maxValue)
epsilon - precisiondelta - error-probabilitymaxValue - the maximum value the will be handled by this algorithm (|U|)public void offer(Double value)
offer in interface IQuantiles<Double>public Double getQuantile(double q) throws QuantilesException
getQuantile in interface IQuantiles<Double>QuantilesExceptionpublic void setElementsPerBucket(int newCount)
public int getElementsPerBucket()
public void setMaxBucketCount(int newCount)
public int getMaxBucketCount()
Copyright © 2014. All rights reserved.