public class IncrementalQuantileEstimator
extends java.lang.Object
implements weka.core.TechnicalInformationHandler
Constructor and Description |
---|
IncrementalQuantileEstimator()
Constructs a new estimator with quantile = 0.5 (i.e.
|
IncrementalQuantileEstimator(double p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(double val)
Add a new observation
|
double |
getQuantile()
Return the current estimate of the quantile
|
weka.core.TechnicalInformation |
getTechnicalInformation() |
java.lang.String |
globalInfo()
Global information about this estimator
|
static void |
main(java.lang.String[] args) |
public IncrementalQuantileEstimator()
public IncrementalQuantileEstimator(double p)
p
- the quantile to estimatepublic java.lang.String globalInfo()
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface weka.core.TechnicalInformationHandler
public double getQuantile() throws java.lang.Exception
java.lang.Exception
- if we have not yet seen 5 values to base the estimate onpublic void add(double val)
val
- the new observed valuepublic static void main(java.lang.String[] args)