random_data_test
random_data_test,
a MATLAB program which
calls random_data() 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 made available on this web page
are distributed under
the GNU LGPL license.
Related Data and Programs:
random_data,
a MATLAB library 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:
-
brownian_test.m
-
random_data_test04.m,
tests GRID_IN_CUBE01.
-
random_data_test05.m,
tests HALTON_IN_CIRCLE01_ACCEPT.
-
random_data_test06.m,
tests HALTON_IN_CIRCLE01_MAP.
-
random_data_test07.m,
tests HALTON_IN_CUBE01.
-
random_data_test08.m,
tests HAMMERSLEY_IN_CUBE01.
-
random_data_test09.m,
tests NORMAL.
-
random_data_test10.m,
tests NORMAL_CIRCULAR.
-
random_data_test11.m,
tests NORMAL_SIMPLE.
-
random_data_test115.m,
tests UNIFORM_IN_ANNULUS.
-
random_data_test12.m,
tests UNIFORM_IN_ANNULUS_ACCEPT.
-
random_data_test125.m,
tests UNIFORM_IN_ANNULUS_SECTOR.
-
random_data_test13.m,
tests UNIFORM_IN_CIRCLE01_MAP.
-
random_data_test14.m,
tests UNIFORM_IN_CUBE01.
-
random_data_test15.m,
tests UNIFORM_IN_ELLIPSOID_MAP.
-
random_data_test16.m,
tests UNIFORM_IN_PARALLELOGRAM_MAP.
-
random_data_test17.m,
tests UNIFORM_IN_POLYGON_MAP.
-
random_data_test18.m,
tests UNIFORM_IN_SECTOR_MAP.
-
random_data_test19.m,
tests UNIFORM_IN_SIMPLEX01_MAP.
-
random_data_test20.m,
tests UNIFORM_IN_SPHERE01_MAP.
-
random_data_test22.m,
tests UNIFORM_IN_TRIANGLE_MAP2.
-
random_data_test23.m,
tests UNIFORM_IN_TRIANGLE01_MAP.
-
random_data_test24.m,
tests UNIFORM_ON_ELLIPSOID_MAP.
-
random_data_test245.m,
tests UNIFORM_ON_HEMISPHERE01_PHONG.
-
random_data_test25.m,
tests UNIFORM_ON_SIMPLEX01_MAP.
-
random_data_test26.m,
tests UNIFORM_ON_SPHERE01_MAP.
-
random_data_test264.m,
tests UNIFORM_ON_SPHERE01_PATCH_TP.
-
random_data_test265.m,
tests UNIFORM_ON_SPHERE01_PATCH_XYZ.
-
random_data_test267.m,
tests UNIFORM_ON_SPHERE01_TRIANGLE_XYZ.
-
random_data_test27.m,
tests UNIFORM_WALK.
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 by acceptance/rejection.
-
halton_in_circle01_map.txt,
Halton points in the unit circle by direct mapping.
-
halton_in_cube01.txt,
Halton points in the unit hypercube.
-
hammersley_in_cube01.txt, Hammersley points in the unit hypercube.
-
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 random points in an annulus, mappint.
-
uniform_in_annulus_accept.txt,
uniform random points in an annulus, acceptance/rejection.
-
uniform_in_annulus_sector.txt,
uniform random points in an annulus sector, mapping.
-
uniform_in_cube.txt,
uniform random points in the unit hypercube.
-
uniform_in_circle01_map.txt,
uniform random points in the unit circle.
-
uniform_in_ellipsoid.txt,
uniform random points in an ellipsoid.
-
uniform_in_parallelogram_map.txt,
uniform random points in a parallelogram.
-
uniform_in_polygon_map.txt,
uniform random points in a polygon (a star, in this case).
-
uniform_in_sector_map.txt,
uniform random points in a circular sector.
-
uniform_in_simplex01_map.txt,
uniform random points in the unit simplex.
-
uniform_in_sphere01_map.txt,
uniform random points in the unit sphere.
-
uniform_in_tetrahedron.txt,
uniform random points in an arbitrary tetrahedron.
-
uniform_in_triangle_map1.txt,
uniform random points in an arbitrary triangle, Turk method 1.
-
uniform_in_triangle01_map.png
-
uniform_in_triangle_map2.txt,
uniform random points in an arbitrary triangle, Turk method 2.
-
uniform_in_triangle01_map.txt,
uniform random points in the unit triangle.
-
uniform_on_cube01.txt,
uniform random points on a unit cube.
-
uniform_on_ellipsoid_map.txt,
uniform random points on an ellipsoid.
-
uniform_on_hemisphere01_phong.txt,
uniform random points on the unit hemisphere, Phong distribution.
-
uniform_on_simplex01_map.txt,
uniform random points on the unit simplex.
-
uniform_on_sphere01_map.txt,
uniform random points on the unit sphere in 2D.
-
uniform_on_sphere01_patch_tp.txt,
uniform random points on a unit sphere TP (THETA,PHI) patch in 3D.
-
uniform_on_sphere01_patch_xyz.txt,
uniform random points on a unit sphere XYZ patch 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. The CONVERT command
was used to convert these to
PNG files.
-
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_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 03 March 2019.