Package moa.core
Class Measurement
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.core.Measurement
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class Measurement extends AbstractMOAObject
Class for storing an evaluation measurement.- Version:
- $Revision: 7 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Measurement(String name, double value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Measurement[]
averageMeasurements(Measurement[][] toAverage)
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.static Measurement
getMeasurementNamed(String name, Measurement[] measurements)
static void
getMeasurementsDescription(Measurement[] measurements, StringBuilder out, int indent)
String
getName()
double
getValue()
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
name
protected String name
-
value
protected double value
-
-
Constructor Detail
-
Measurement
public Measurement(String name, double value)
-
-
Method Detail
-
getName
public String getName()
-
getValue
public double getValue()
-
getMeasurementNamed
public static Measurement getMeasurementNamed(String name, Measurement[] measurements)
-
getMeasurementsDescription
public static void getMeasurementsDescription(Measurement[] measurements, StringBuilder out, int indent)
-
averageMeasurements
public static Measurement[] averageMeasurements(Measurement[][] toAverage)
-
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
-
-