public static class PrimsMinimumSpanningTree.Array2DAdapter extends java.lang.Object implements PrimsMinimumSpanningTree.Adapter<double[][]>
Modifier | Constructor and Description |
---|---|
private |
Array2DAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(double[][] data,
int i,
int j)
Get the distance of two objects
|
int |
size(double[][] data)
Get number of objects in dataset
|
public double distance(double[][] data, int i, int j)
PrimsMinimumSpanningTree.Adapter
distance
in interface PrimsMinimumSpanningTree.Adapter<double[][]>
data
- Data seti
- First indexj
- Second indexpublic int size(double[][] data)
PrimsMinimumSpanningTree.Adapter
size
in interface PrimsMinimumSpanningTree.Adapter<double[][]>
Copyright © 2019 ELKI Development Team. License information.