Class IntervalEstimatorBased.SortedInterval

    • Field Detail

      • m_Intervals

        protected double[][] m_Intervals
        the intervals.
      • m_AverageWidth

        protected double m_AverageWidth
        the average width.
      • m_RelativeWidths

        protected boolean m_RelativeWidths
        whether the widths are relative.
    • Constructor Detail

      • SortedInterval

        public SortedInterval​(weka.core.Instance inst,
                              double[][] intervals,
                              boolean relative)
        Initializes the intervals.
        Parameters:
        inst - the Instance this container is for
        intervals - the intervals
        relative - whether to use relative widths
    • 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 interface Comparable
        Specified by:
        compareTo in class AbstractCrossvalidatedInstanceEvaluator.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.