public class MatrixParadigm
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
DBIDArrayIter |
ix
Two iterators to reference to objects.
|
DBIDArrayIter |
iy
Two iterators to reference to objects.
|
double[] |
matrix
Distance matrix (modifiable).
|
int |
size
Number of rows/columns.
|
Constructor and Description |
---|
MatrixParadigm(DBIDs ids)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
get(int x,
int y)
Get a value from the (upper triangular) distance matrix.
|
MatrixParadigm |
initializeWithDistances(DistanceQuery<?> dq)
Initialize a distance matrix.
|
static int |
triangleSize(int x)
Compute the size of a complete x by x triangle (minus diagonal)
|
public final DBIDArrayIter ix
public final DBIDArrayIter iy
public final double[] matrix
public final int size
public MatrixParadigm(DBIDs ids)
ids
- Database ids.public static int triangleSize(int x)
x
- Offsetpublic double get(int x, int y)
x
- First objecty
- Second objectpublic MatrixParadigm initializeWithDistances(DistanceQuery<?> dq)
dq
- Distance queryCopyright © 2019 ELKI Development Team. License information.