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 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.
-
-
-
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.
-
-