edu.stanford.math.plex
public class DiscreteSpace extends PointData
DiscreteSpace class implements a finite discrete metric
space. Used for testing.PointData.Discrete, PointData.NSpace, PointData.Predicate| Modifier and Type | Field and Description |
|---|---|
int |
N |
| Constructor and Description |
|---|
DiscreteSpace(int N) |
| Modifier and Type | Method and Description |
|---|---|
int |
count()
The number of data points.
|
double |
distance(int p1,
int p2)
Discrete distance.
|
random_points