edu.stanford.math.plex
Modifier and Type | Class and Description |
---|---|
protected static class |
PointData.Discrete.DSS |
PointData.Discrete, PointData.NSpace, PointData.Predicate
Modifier and Type | Field and Description |
---|---|
protected int |
N |
Modifier | Constructor and Description |
---|---|
protected |
PointData.Discrete() |
|
PointData.Discrete(int n)
Make a PointData.Discrete with N points.
|
Modifier and Type | Method and Description |
---|---|
int |
count()
The number of points in this data set.
|
double |
distance(int p1,
int p2)
Distance between 2 points.
|
static SimplexStream |
DSphere(int d)
Make an instance of the boundary of the canonical (D+1)-Simplex.
|
static SimplexStream |
DSphereKskeleton(int d,
int k) |
random_points
protected PointData.Discrete()
public PointData.Discrete(int n)
n
- The number of points in the discrete set.public double distance(int p1, int p2)
public int count()
Indexing begins from 1, not 0, which means that the points go from 1 to count(), inclusive. It is acceptable for an implementation to allow points to be added.
public static SimplexStream DSphere(int d)
d
- The dimension of the "sphere-like" simplicial complex.public static SimplexStream DSphereKskeleton(int d, int k)