simplex_grid
simplex_grid,
an Octave code which
generates a grid of points
over the interior of a simplex in M dimensions.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the MIT license
Languages:
simplex_grid is available in
a C version and
a C++ version and
a Fortran90 version and
a MATLAB version and
an Octave version and
a Python version.
Related Data and Programs:
simplex_grid_test
asa299,
an Octave code which
computes the lattice points in an m-dimensional simplex,
by chasalow and brand;
this is a version of applied statistics algorithm 299;
simplex_coordinates,
an Octave code which
computes the cartesian coordinates of the vertices of
a regular simplex in m dimensions.
simplex_gm_rule,
an Octave code which
defines grundmann-moeller quadrature rules
over the interior of a simplex in m dimensions.
Source Code:
-
comp_next_grlex.m,
returns the next composition of an integer N into K parts,
using the graded lexicographic ordering.
-
comp_random.m,
returns a random composition of an integer N into K parts.
-
i4_uniform_ab.m,
returns a random integer between A and B.
-
i4mat_transpose_print.m,
prints an I4MAT transposed.
-
i4mat_transpose_print_some.m,
prints some of an I4MAT transposed.
-
ksub_random.m,
returns a random subset of K items from a set of N items.
-
r8mat_transpose_print.m,
prints an R8MAT transposed.
-
r8mat_transpose_print_some.m,
prints some of an R8MAT transposed.
-
simplex_grid_index_all.m,
returns all the simplex grid indices.
-
simplex_grid_index_next.m,
returns the next simplex grid index.
-
simplex_grid_index_sample.m,
returns a random simplex grid index.
-
simplex_grid_index_to_point.m,
converts a simplex grid index to a physical point.
-
simplex_grid_size.m,
returns the size of a grid using N subintervals in each of M dimensions.
Last revised on 13 October 2022.