public class PointCloud_KdTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
PointCloud_KdTree |
next |
Point_d |
p |
Constructor and Description |
---|
PointCloud_KdTree(Point_d p,
PointCloud_KdTree n,
boolean copy)
Constructor: add a new point to the cloud (copying or not)
|
Modifier and Type | Method and Description |
---|---|
static double[] |
boundingBox(PointCloud_KdTree N) |
static Point_d[] |
copy(PointCloud_KdTree N,
int size) |
static Point_d |
mean(PointCloud_KdTree N) |
double |
randNorm(double mean,
double sigma)
Return a random value according to the normal distribution
|
static PointCloud_KdTree |
randomPoints(int n,
int dim)
return a point cloud of n random points (in the unit hyper-square in dimension dim)
|
static PointCloud_KdTree |
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_KdTree N)
return the size (number of points)
|
java.lang.String |
toString() |
public Point_d p
public PointCloud_KdTree next
PointCloud_KdTree(Point_d p, PointCloud_KdTree n, boolean copy)
public java.lang.String toString()
toString
in class java.lang.Object
public static int size(PointCloud_KdTree N)
public static Point_d mean(PointCloud_KdTree N)
public static double[] boundingBox(PointCloud_KdTree N)
public static PointCloud_KdTree randomPoints(int n, int dim)
public static PointCloud_KdTree randomPointsOnCircle(int n, int dim)
public double randNorm(double mean, double sigma)
public static Point_d[] copy(PointCloud_KdTree N, int size)