Package adams.data.conversion
Class WekaPredictionContainerToSpreadSheet.SortContainer
- java.lang.Object
-
- adams.data.conversion.WekaPredictionContainerToSpreadSheet.SortContainer
-
- All Implemented Interfaces:
Comparable<WekaPredictionContainerToSpreadSheet.SortContainer>
- Enclosing class:
- WekaPredictionContainerToSpreadSheet
public static class WekaPredictionContainerToSpreadSheet.SortContainer extends Object implements Comparable<WekaPredictionContainerToSpreadSheet.SortContainer>
Helper class for sorting the distribution.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_Indexthe distribution index (0-based).protected doublem_Probabilitythe probability.
-
Constructor Summary
Constructors Constructor Description SortContainer(int index, double probability)Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(WekaPredictionContainerToSpreadSheet.SortContainer o)Compares this object with the specified object for order.booleanequals(Object obj)Indicates whether some other object is "equal to" this one.intgetIndex()Returns the index.doublegetProbability()Returns the probability.StringtoString()Returns a short string description of the container.
-
-
-
Method Detail
-
getIndex
public int getIndex()
Returns the index.- Returns:
- the index
-
getProbability
public double getProbability()
Returns the probability.- Returns:
- the probability
-
compareTo
public int compareTo(WekaPredictionContainerToSpreadSheet.SortContainer 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.- Specified by:
compareToin interfaceComparable<WekaPredictionContainerToSpreadSheet.SortContainer>- 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.
-
equals
public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
-
-