random_data_test
random_data_test,
a C code which
calls random_data() to
use a random number generator (RNG) to sample points for
various probability distributions, spatial dimensions, and geometries,
including the M-dimensional cube, ellipsoid, simplex and sphere.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the MIT license
Related Data and Programs:
random_data,
a C code which
uses a random number generator (RNG) to sample points corresponding
to various probability density functions (PDF's), spatial dimensions,
and geometries, including the M-dimensional cube, ellipsoid, simplex
and sphere.
Source Code:
The sample calling program generates sets of points:
-
bad_in_tetrahedron.txt,
points in the unit tetrahedron, not uniformly chosen.
-
bad_in_triangle.txt,
points in the unit triangle, not uniformly chosen.
-
brownian.txt, Brownian motion.
-
grid_in_cube01.txt,
grid points in the unit hypercube, with CENTER = 1.
-
halton_in_circle01_accept.txt,
Halton points in the unit circle, acceptance/rejection.
-
halton_in_circle01_map.txt,
Halton points in the unit circle, direct mapping.
-
halton_in_cube01.txt,
Halton points in the unit hypercube.
-
hammersley_in_cube01.txt, Hammersley points.
-
normal.txt, normal points, with
strong correlation between the two coordinates.
-
normal_circular.txt,
circular normal points.
-
normal_simple.txt,
normal points in which there is no correlation between the
X and Y coordinates.
-
polygon_vertices.txt,
the vertices of a polygon to be filled by random points.
-
uniform_in_annulus.txt,
uniform points in an annulus, mapping.
-
uniform_in_annulus_accept.txt,
uniform points in an annulus, acceptance/rejection.
-
uniform_in_annulus_sector.txt,
uniform points in an annulus sector.
-
uniform_in_cube01.txt,
uniform points in the unit hypercube.
-
uniform_in_circle01_map.txt,
uniform points in the unit circle.
-
uniform_in_ellipsoid_map.txt,
uniform points in an ellipsoid.
-
uniform_in_parallelogram_map.txt,
uniform points in a parallelogram.
-
uniform_in_polygon_map.txt,
uniform points in a polygon (a star, in this case).
-
uniform_in_sector_map.txt,
uniform points in a circular sector.
-
uniform_in_simplex01_map.txt,
uniform points in the unit simplex.
-
uniform_in_sphere01_map.txt,
uniform points in the unit sphere.
-
uniform_in_triangle_map2.txt,
uniform points in an arbitrary triangle, Turk method 1.
-
uniform_in_triangle_map2.txt,
uniform points in an arbitrary triangle, Turk method 2.
-
uniform_in_triangle01_map.txt,
uniform points in the unit triangle.
-
uniform_on_cube01.txt,
uniform points on the unit cube.
-
uniform_on_ellipsoid_map.txt,
uniform points on an ellipsoid.
-
uniform_on_hemisphere01_phong.txt,
uniform random points on a hemisphere, Phong distribution.
-
uniform_on_simplex01_map.txt,
uniform points on the unit simplex.
-
uniform_on_sphere01_map.txt,
uniform points on the unit sphere in 2D.
-
uniform_on_sphere01_patch_tp.txt,
uniform random points on an TP (theta,phi) "patch" of the unit sphere in 3D.
-
uniform_on_sphere01_patch_xyz.txt,
uniform random points on an XYZ "patch" of the unit sphere in 3D.
-
uniform_on_sphere01_triangle_xyz.txt,
uniform random points on a spherical triangle of the unit sphere in 3D
using XYZ coordinates.
-
uniform_walk.txt,
points on a uniform random walk.
A file of commands is provided to simplify the use of PLOT_POINTS:
PLOT_POINTS makes Encapsulated PostScript
images of the points, in
cases where the data is 2 dimensional. These EPS files are
converted to PNG images
for posting on this web page.
-
brownian.png.
-
grid_in_cube01.png
-
halton_in_circle01_accept.png
-
halton_in_circle01_map.png
-
halton_in_cube01.png
-
hammersley_in_cube01.png
-
normal.png
-
normal_circular.png
-
normal_simple.png
-
polygon_vertices.png,
-
uniform_in_annulus.png,
-
uniform_in_annulus_accept.png,
-
uniform_in_annulus_sector.png,
-
uniform_in_cube01.png,
-
uniform_in_circle01_map.png,
-
uniform_in_ellipsoid_map.png,
-
uniform_in_parallelogram_map.png,
-
uniform_in_polygon_map.png,
-
uniform_in_sector_map.png,
-
uniform_in_simplex01_map.png,
-
uniform_in_sphere01_map.png,
-
uniform_in_triangle_map1.png,
-
uniform_in_triangle_map2.png,
-
uniform_in_triangle01_map.png,
-
uniform_on_ellipsoid_map.png,
-
uniform_on_simplex01_map.png,
-
uniform_on_sphere01_map.png,
-
uniform_on_sphere01_patch_tp.png
-
uniform_on_sphere01_patch_xyz.png
-
uniform_walk.png,
Last revised on 01 August 2019.