edu.stanford.math.plex
public class DistanceData extends PointData
DistanceData
class is the simplest implementation
of NSpace. Intended for smallish data sets.PointData.Discrete, PointData.NSpace, PointData.Predicate
Constructor and Description |
---|
DistanceData(double[][] data) |
Modifier and Type | Method and Description |
---|---|
int |
count()
The number of data points.
|
double |
distance(int p1,
int p2)
Euclidean distance.
|
random_points