private static class AbstractLayout3DPC.LowerTriangularAdapter extends java.lang.Object implements PrimsMinimumSpanningTree.Adapter<double[]>
Implementation note: the edges are given as an array of 2*e values.
Modifier and Type | Field and Description |
---|---|
(package private) int |
dim |
Constructor and Description |
---|
LowerTriangularAdapter(int dim) |
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.