|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--coreComponents.DoubleWithIndex
Class for storing a double value with a respective index. This is used for when sorting double values and needing to keep track of the original index, eg. when ranking the p-values or probabilities for predicted classes.
Constructor Summary | |
DoubleWithIndex(double d,
int i)
Simple constructor for initialising the variables. |
Method Summary | |
double |
doubleValue()
returns the double value |
int |
index()
returns the index |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DoubleWithIndex(double d, int i)
d
- the double value to be seti
- the corresponding index for that double valueMethod Detail |
public int index()
public double doubleValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London