Package moa.core
Class GreenwaldKhannaQuantileSummary
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.core.GreenwaldKhannaQuantileSummary
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Direct Known Subclasses:
IademGreenwaldKhannaQuantileSummary
public class GreenwaldKhannaQuantileSummary extends AbstractMOAObject
Class for representing summaries of Greenwald and Khanna quantiles.- Version:
- $Revision: 7 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
GreenwaldKhannaQuantileSummary.Tuple
-
Field Summary
Fields Modifier and Type Field Description protected long
numObservations
protected int
numTuples
protected GreenwaldKhannaQuantileSummary.Tuple[]
summary
-
Constructor Summary
Constructors Constructor Description GreenwaldKhannaQuantileSummary(int maxTuples)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compress(long maxDelta)
static long[]
computeBandBoundaries(long maxDelta)
protected void
deleteMergeableTupleMostFull()
protected void
deleteTuple(int index)
protected void
deleteTupleMostFull()
protected int
findIndexOfTupleGreaterThan(double val)
long
findMaxDelta()
long
getCountBelow(double cutpoint)
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.double
getPropotionBelow(double cutpoint)
double
getQuantile(double quant)
double[]
getSuggestedCutpoints()
long
getTotalCount()
long
getWorstError()
void
insert(double val)
protected void
insertTuple(GreenwaldKhannaQuantileSummary.Tuple t, int index)
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
summary
protected GreenwaldKhannaQuantileSummary.Tuple[] summary
-
numTuples
protected int numTuples
-
numObservations
protected long numObservations
-
-
Method Detail
-
insert
public void insert(double val)
-
insertTuple
protected void insertTuple(GreenwaldKhannaQuantileSummary.Tuple t, int index)
-
deleteTuple
protected void deleteTuple(int index)
-
deleteTupleMostFull
protected void deleteTupleMostFull()
-
deleteMergeableTupleMostFull
protected void deleteMergeableTupleMostFull()
-
getWorstError
public long getWorstError()
-
findMaxDelta
public long findMaxDelta()
-
compress
public void compress(long maxDelta)
-
getQuantile
public double getQuantile(double quant)
-
getTotalCount
public long getTotalCount()
-
getPropotionBelow
public double getPropotionBelow(double cutpoint)
-
getCountBelow
public long getCountBelow(double cutpoint)
-
getSuggestedCutpoints
public double[] getSuggestedCutpoints()
-
findIndexOfTupleGreaterThan
protected int findIndexOfTupleGreaterThan(double val)
-
computeBandBoundaries
public static long[] computeBandBoundaries(long maxDelta)
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-