Modifier and Type | Field and Description |
---|---|
(package private) double[] |
keys
Double keys
|
(package private) int |
size
Used size
|
(package private) int[] |
vals
Integer values
|
Constructor and Description |
---|
LOCI.DoubleIntArrayList(int alloc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(double key,
int val)
Append a key-value pair.
|
int |
find(double search)
Find the last position with a smaller or equal key.
|
double |
getDouble(int i)
Get the key at the given position.
|
int |
getInt(int i)
Get the value at the given position.
|
void |
setValue(int i,
int val)
Get the value at the given position.
|
int |
size()
Collection size.
|
void |
sort()
Sort the array list.
|
public LOCI.DoubleIntArrayList(int alloc)
alloc
- Initial allocation.public int size()
public double getDouble(int i)
i
- Positionpublic int getInt(int i)
i
- Positionpublic void setValue(int i, int val)
i
- Positionval
- New valuepublic void append(double key, int val)
key
- Key to appendval
- Value to append.public int find(double search)
search
- Keypublic void sort()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.