Class WekaPredictionContainerToSpreadSheet.SortContainer

    • Field Detail

      • m_Index

        protected int m_Index
        the distribution index (0-based).
      • m_Probability

        protected double m_Probability
        the probability.
    • Constructor Detail

      • SortContainer

        public SortContainer​(int index,
                             double probability)
        Initializes the container.
        Parameters:
        index - the 0-based index in the distribution array
        probability - the probability in the distribution
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the index.
        Returns:
        the index
      • getProbability

        public double getProbability()
        Returns the probability.
        Returns:
        the probability
      • equals

        public boolean equals​(Object obj)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        obj - the reference object with which to compare.
        Returns:
        true if this object is the same as the obj argument; false otherwise.
      • toString

        public String toString()
        Returns a short string description of the container.
        Overrides:
        toString in class Object
        Returns:
        the description