class DoubleIntegerDBIDPair extends java.lang.Object implements DoubleDBIDPair, IntegerDBIDRef
Modifier and Type | Field and Description |
---|---|
(package private) int |
id
The DB id.
|
(package private) double |
value
The double value.
|
Modifier | Constructor and Description |
---|---|
protected |
DoubleIntegerDBIDPair(double value,
int id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DoubleDBIDPair o) |
double |
doubleValue()
Get the double value of the pair.
|
int |
internalGetIndex()
Internal only: Get the internal index.
|
java.lang.String |
toString() |
protected DoubleIntegerDBIDPair(double value, int id)
value
- Double valueid
- DBIDpublic int internalGetIndex()
DBIDRef
NOT FOR PUBLIC USE - ELKI Optimization engine only.
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public int compareTo(DoubleDBIDPair o)
compareTo
in interface java.lang.Comparable<DoubleDBIDPair>
public double doubleValue()
DoubleDBIDPair
doubleValue
in interface DoubleDBIDPair
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.