public class MonteCarloSampler
extends java.lang.Object
Constructor and Description |
---|
MonteCarloSampler() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
static void |
pyramidTest(int nsamples) |
static void |
sampleHex(Point3d pnt)
Generates a uniform random sample from the canonical hexahedron.
|
static void |
samplePyramid(Point3d pnt)
Generates a uniform random sample from the canonical pyramid,
|
static void |
sampleSphere(Point3d pnt)
Generates a uniform random sample from inside a unit sphere
|
static void |
sampleTet(Point3d pnt)
Generates a uniform random sample from the canonical tetrahedron.
|
static void |
sampleTet2(Point3d pnt)
Generates a uniform random sample from the canonical tetrahedron.
|
static void |
sampleWedge(Point3d pnt)
Generates a uniform random sample from the canonical wedge.
|
static void |
tetTest(int nsamples) |
static void |
wedgeTest(int nsamples) |
public static void sampleTet(Point3d pnt)
pnt
- point to populatepublic static void sampleTet2(Point3d pnt)
pnt
- point to populatepublic static void sampleHex(Point3d pnt)
pnt
- point to populatepublic static void sampleWedge(Point3d pnt)
pnt
- point to populatepublic static void samplePyramid(Point3d pnt)
pnt
- sampled pointpublic static void sampleSphere(Point3d pnt)
pnt
- sampled pointpublic static void tetTest(int nsamples)
public static void pyramidTest(int nsamples)
public static void wedgeTest(int nsamples)
public static void main(java.lang.String[] args)