coreComponents
Class DoubleWithIndex

java.lang.Object
  |
  +--coreComponents.DoubleWithIndex

public class DoubleWithIndex
extends java.lang.Object

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.

Version:
$Revision 1.00$
Author:
David Lindsay (davidl@cs.rhul.ac.uk)

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

DoubleWithIndex

public DoubleWithIndex(double d,
                       int i)
Simple constructor for initialising the variables.

Parameters:
d - the double value to be set
i - the corresponding index for that double value
Method Detail

index

public int index()
returns the index


doubleValue

public double doubleValue()
returns the double value



Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London