Package elki.outlier.lof
Class LOCI.DoubleIntArrayList
- java.lang.Object
-
- elki.outlier.lof.LOCI.DoubleIntArrayList
-
-
Constructor Summary
Constructors Constructor Description DoubleIntArrayList(int alloc)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(double key, int val)Append a key-value pair.intfind(double search)Find the last position with a smaller or equal key.doublegetDouble(int i)Get the key at the given position.intgetInt(int i)Get the value at the given position.voidsetValue(int i, int val)Get the value at the given position.intsize()Collection size.voidsort()Sort the array list.
-
-
-
Method Detail
-
size
public int size()
Collection size.- Returns:
- Size
-
getDouble
public double getDouble(int i)
Get the key at the given position.- Parameters:
i- Position- Returns:
- Key
-
getInt
public int getInt(int i)
Get the value at the given position.- Parameters:
i- Position- Returns:
- Value
-
setValue
public void setValue(int i, int val)Get the value at the given position.- Parameters:
i- Positionval- New value
-
append
public void append(double key, int val)Append a key-value pair.- Parameters:
key- Key to appendval- Value to append.
-
find
public int find(double search)
Find the last position with a smaller or equal key.- Parameters:
search- Key- Returns:
- Position
-
sort
public void sort()
Sort the array list.
-
-