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 int
m_Index
the distribution index (0-based).protected double
m_Probability
the 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 int
compareTo(WekaPredictionContainerToSpreadSheet.SortContainer o)
Compares this object with the specified object for order.boolean
equals(Object obj)
Indicates whether some other object is "equal to" this one.int
getIndex()
Returns the index.double
getProbability()
Returns the probability.String
toString()
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:
compareTo
in 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.
-
-