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 doublem_AverageWidththe average width.protected double[][]m_Intervalsthe intervals.protected booleanm_RelativeWidthswhether 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 intcompareTo(Object o)Compares this object with the specified object for order.doublegetAverageWidth()Returns the average width of the stored intervals.double[][]getIntervals()Returns the stored intervals.StringtoString()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:
compareToin interfaceComparable- Specified by:
compareToin 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:
toStringin classAbstractCrossvalidatedInstanceEvaluator.EvaluationContainer- Returns:
- the intervals
-
-