public class PointCloud
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
PointCloud |
next |
Jcg.geometry.Point_d |
p |
Constructor and Description |
---|
PointCloud(Jcg.geometry.Point_d p,
PointCloud n,
boolean copy)
Constructor: add a new point to the cloud (copying or not)
|
Modifier and Type | Method and Description |
---|---|
static double[] |
boundingBox(PointCloud N) |
static Jcg.geometry.Point_d[] |
copy(PointCloud N,
int size) |
static void |
main(java.lang.String[] args) |
static Jcg.geometry.Point_d |
mean(PointCloud N) |
double |
randNorm(double mean,
double sigma)
Return a random value according to the normal distribution
|
static PointCloud |
randomPoints(int n,
int dim)
return a point cloud of n random points (in the unit hyper-square in dimension dim)
|
static PointCloud |
randomPointsOnCircle(int n,
int dim)
return a point cloud of n random points sampled on a circle
(according to normal distribution)
|
static int |
size(PointCloud N)
return the size (number of points)
|
java.lang.String |
toString() |
public Jcg.geometry.Point_d p
public PointCloud next
PointCloud(Jcg.geometry.Point_d p, PointCloud n, boolean copy)
public java.lang.String toString()
toString
in class java.lang.Object
public static int size(PointCloud N)
public static Jcg.geometry.Point_d mean(PointCloud N)
public static double[] boundingBox(PointCloud N)
public static PointCloud randomPoints(int n, int dim)
public static PointCloud randomPointsOnCircle(int n, int dim)
public double randNorm(double mean, double sigma)
public static Jcg.geometry.Point_d[] copy(PointCloud N, int size)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception