public static class DimensionSimilarityMatrix.PrimAdapter extends Object implements PrimsMinimumSpanningTree.Adapter<DimensionSimilarityMatrix>
Modifier | Constructor and Description |
---|---|
protected |
DimensionSimilarityMatrix.PrimAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(DimensionSimilarityMatrix data,
int i,
int j)
Get the distance of two objects
|
int |
size(DimensionSimilarityMatrix data)
Get number of objects in dataset
|
protected DimensionSimilarityMatrix.PrimAdapter()
public double distance(DimensionSimilarityMatrix data, int i, int j)
PrimsMinimumSpanningTree.Adapter
distance
in interface PrimsMinimumSpanningTree.Adapter<DimensionSimilarityMatrix>
data
- Data seti
- First indexj
- Second indexpublic int size(DimensionSimilarityMatrix data)
PrimsMinimumSpanningTree.Adapter
size
in interface PrimsMinimumSpanningTree.Adapter<DimensionSimilarityMatrix>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.