edu.stanford.math.plex4.examples
public class PointCloudExamples extends java.lang.Object
Constructor and Description |
---|
PointCloudExamples() |
Modifier and Type | Method and Description |
---|---|
static double[][] |
getAnnulusVertices(int width,
int length) |
static double[][] |
getDisjointPatches(int n) |
static double[][] |
getEquispacedCirclePoints(int n)
This function returns a point set containing n equally spaced points on a
circle.
|
static double[][] |
getGaussianPoints(int n,
int d)
This function returns n points distributed to a standard Gaussian distribution in d-dimensional
Euclidean space.
|
static double[][] |
getHouseExample()
This produces the house example in the tutorial by Henry Adams.
|
static double[][] |
getIcosahedronVertices() |
static double[][] |
getOctahedronVertices()
This function returns the vertices of an octahedron.
|
static double[][] |
getRandomCirclePoints(int n)
This function returns a point set containing n randomly selected points,
ordered clockwise on a circle.
|
static double[][] |
getRandomFigure8Points(int n)
This function returns randomly generated points on a figure-8 in the plane.
|
static double[][] |
getRandomSpherePoints(int n,
int d)
This function returns n uniformly random point on the d-dimensional sphere as a subset
of R^{d+1}.
|
static double[][] |
getRandomSphereProductPoints(int numPoints,
int sphereDimension,
int numFactors)
This function returns uniformly distributed points on the space S^k x ...
|
static double[][] |
getRandomTorusPoints(int n,
double r,
double R)
This function returns non-uniformly generated points on the torus in R^3.
|
static double[][] |
getRandomTrefoilKnotPoints(int n) |
static double[][] |
getSquare()
This function produces a square in the plane.
|
static double[][] |
getTetrahedronVertices()
This function returns the vertices of an tetrahedron.
|
public static double[][] getHouseExample()
public static double[][] getSquare()
public static double[][] getEquispacedCirclePoints(int n)
n
- public static double[][] getRandomCirclePoints(int n)
n
- public static double[][] getOctahedronVertices()
public static double[][] getTetrahedronVertices()
public static double[][] getAnnulusVertices(int width, int length)
public static double[][] getIcosahedronVertices()
public static double[][] getRandomSpherePoints(int n, int d)
n
- the number of points to generated
- the dimension of the sphere to generate onpublic static double[][] getGaussianPoints(int n, int d)
n
- the number of points to generated
- the dimension of the space to generate inpublic static double[][] getRandomTorusPoints(int n, double r, double R)
n
- the number of points to generater
- the inner radiusR
- the outer radiuspublic static double[][] getRandomTrefoilKnotPoints(int n)
public static double[][] getRandomSphereProductPoints(int numPoints, int sphereDimension, int numFactors)
numPoints
- the number of points to generatesphereDimension
- the sphere dimension (ie. the k in S^k x ... x S^k)numFactors
- the number of factors in the product S^k x ... x S^kpublic static double[][] getRandomFigure8Points(int n)
n
- the number of points to generatepublic static double[][] getDisjointPatches(int n)