Package moa.evaluation
Class MeasureCollection
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.evaluation.MeasureCollection
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Direct Known Subclasses:
Accuracy
,ALMeasureCollection
,ChangeDetectionMeasures
,CMM
,EntropyCollection
,F1
,General
,OutlierPerformance
,Separation
,SilhouetteCoefficient
,SSQ
,StatisticalCollection
public abstract class MeasureCollection extends AbstractMOAObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MeasureCollection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addEmptyValue(int index)
void
addEventType(String type)
void
addValue(int index, double value)
protected void
addValue(String name, double value)
void
clean(int index)
protected abstract void
evaluateClustering(Clustering clustering, Clustering trueClustering, ArrayList<DataPoint> points)
double
evaluateClusteringPerformance(Clustering clustering, Clustering trueClustering, ArrayList<DataPoint> points)
ArrayList<Double>
getAllValues(int index)
protected boolean[]
getDefaultEnabled()
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.String
getEventType(int index)
double
getLastValue(int index)
double
getLowerQuartile(int index)
double
getMaxValue(int index)
double
getMean(int index)
double
getMeanRunningTime()
double
getMedian(int index)
double
getMinValue(int index)
String
getName(int index)
protected abstract String[]
getNames()
int
getNumberOfValues(int index)
int
getNumMeasures()
double
getUpperQuartile(int index)
double
getValue(int index, int i)
boolean
isEnabled(int index)
void
setEnabled(int index, boolean value)
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Method Detail
-
getNames
protected abstract String[] getNames()
-
addValue
public void addValue(int index, double value)
-
addValue
protected void addValue(String name, double value)
-
addEmptyValue
public void addEmptyValue(int index)
-
getNumMeasures
public int getNumMeasures()
-
getName
public String getName(int index)
-
getMaxValue
public double getMaxValue(int index)
-
getMinValue
public double getMinValue(int index)
-
getLastValue
public double getLastValue(int index)
-
getMean
public double getMean(int index)
-
clean
public void clean(int index)
-
getMedian
public double getMedian(int index)
-
getLowerQuartile
public double getLowerQuartile(int index)
-
getUpperQuartile
public double getUpperQuartile(int index)
-
getNumberOfValues
public int getNumberOfValues(int index)
-
getValue
public double getValue(int index, int i)
-
setEnabled
public void setEnabled(int index, boolean value)
-
isEnabled
public boolean isEnabled(int index)
-
getMeanRunningTime
public double getMeanRunningTime()
-
getDefaultEnabled
protected boolean[] getDefaultEnabled()
-
evaluateClustering
protected abstract void evaluateClustering(Clustering clustering, Clustering trueClustering, ArrayList<DataPoint> points) throws Exception
- Throws:
Exception
-
evaluateClusteringPerformance
public double evaluateClusteringPerformance(Clustering clustering, Clustering trueClustering, ArrayList<DataPoint> points) throws Exception
- Throws:
Exception
-
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
-
addEventType
public void addEventType(String type)
-
getEventType
public String getEventType(int index)
-
-