|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.data.conversion.WekaPredictionContainerToSpreadSheet.SortContainer
public static class WekaPredictionContainerToSpreadSheet.SortContainer
Helper class for sorting the distribution.
| Field Summary | |
|---|---|
protected int |
m_Index
the distribution index (0-based). |
protected double |
m_Probability
the probability. |
| Constructor Summary | |
|---|---|
WekaPredictionContainerToSpreadSheet.SortContainer(int index,
double probability)
Initializes the container. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int m_Index
protected double m_Probability
| Constructor Detail |
|---|
public WekaPredictionContainerToSpreadSheet.SortContainer(int index,
double probability)
index - the 0-based index in the distribution arrayprobability - the probability in the distribution| Method Detail |
|---|
public int getIndex()
public double getProbability()
public int compareTo(WekaPredictionContainerToSpreadSheet.SortContainer o)
compareTo in interface Comparable<WekaPredictionContainerToSpreadSheet.SortContainer>o - the object to be compared.
public boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||