Package adams.data.weka.evaluator
Class IntervalEstimatorBased.SortedInterval
- java.lang.Object
-
- adams.data.weka.evaluator.AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer
-
- adams.data.weka.evaluator.IntervalEstimatorBased.SortedInterval
-
- All Implemented Interfaces:
Comparable
- Enclosing class:
- IntervalEstimatorBased
public static class IntervalEstimatorBased.SortedInterval extends AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer
Helper class for sorting the confidence intervals.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected double
m_AverageWidth
the average width.protected double[][]
m_Intervals
the intervals.protected boolean
m_RelativeWidths
whether the widths are relative.-
Fields inherited from class adams.data.weka.evaluator.AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer
m_Instance
-
-
Constructor Summary
Constructors Constructor Description SortedInterval(weka.core.Instance inst, double[][] intervals, boolean relative)
Initializes the intervals.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object o)
Compares this object with the specified object for order.double
getAverageWidth()
Returns the average width of the stored intervals.double[][]
getIntervals()
Returns the stored intervals.String
toString()
Returns the intervals as string.-
Methods inherited from class adams.data.weka.evaluator.AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer
equals, getInstance
-
-
-
-
Method Detail
-
getIntervals
public double[][] getIntervals()
Returns the stored intervals.- Returns:
- the intervals
-
getAverageWidth
public double getAverageWidth()
Returns the average width of the stored intervals.- Returns:
- the average width
-
compareTo
public int compareTo(Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Only compares the commandlines of the two objects.- Specified by:
compareTo
in interfaceComparable
- Specified by:
compareTo
in classAbstractCrossvalidatedInstanceEvaluator.EvaluationContainer
- Parameters:
o
- the object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
- Throws:
ClassCastException
- if the specified object's type prevents it from being compared to this object.
-
toString
public String toString()
Returns the intervals as string.- Specified by:
toString
in classAbstractCrossvalidatedInstanceEvaluator.EvaluationContainer
- Returns:
- the intervals
-
-