edu.stanford.math.plex4.graph.random
public class KNearestNeighborsGraph extends ManifoldGraph
GraphInstanceGenerator.ImplementationTypepointsgraphImplementation, implementationType| Constructor and Description |
|---|
KNearestNeighborsGraph(int size,
int dimension,
int k) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
distance(double[] x,
double[] y)
This function must implement the distance function on the manifold.
|
protected void |
generatePoints()
This function must generate the set of random points on the manifold.
|
java.lang.String |
toString() |
generate, generateUniformPoints, getNearestNeighborsinitializeGraph, setImplementationTypepublic KNearestNeighborsGraph(int size,
int dimension,
int k)
protected double distance(double[] x,
double[] y)
ManifoldGraphdistance in class ManifoldGraphx - the first pointy - the second pointprotected void generatePoints()
ManifoldGraphgeneratePoints in class ManifoldGraphpublic java.lang.String toString()
toString in class java.lang.Object