TABLE_QUALITY
Interactive Program for
Point Dispersion Quality
TABLE_QUALITY
is a FORTRAN90 program which
reads a data file containing
the coordinates of N points in an M dimensional region,
and computes some measures of the quality of dispersion
of the points.
The program assumes that the pointset lies in the unit hypercube.
However, it is easy to modify the program to handle other regions.
A single routine, named sample_routine, is required to return
sample points in the region. To handle a different region,
simply modify this routine, and rebuild the program. One other
builtin routine is already available, for sampling the unit sphere.
The unit hypercube in M dimensional space is simply the set of
all vectors whose entries are between 0 and 1. It is
a natural abstraction of the unit line segment, the unit square,
and the unit cube, and represents a very simple chunk of M
dimensional space.
The quality measures computed include:

Beta, the standard deviation of the minimum spacing
between nodes, normalized by the average spacing;

Chi, the regularity measure;

D, the second moment determinant measure;

E, the Voronoi energy measure;

Gamma, the mesh ratio;

H, the point distribution norm;

Lambda, the COV measure;

Mu, the point distribution ratio;

Nu, the cell volume deviation;

R0, the Riesz S=0 energy;

S, the sphere volume measure
(unit hypercube datasets only).

Tau, the second moment trace measure;
The program also prints:

Gamma_min, the minimum spacing between nodes;

Gamma_ave, the average spacing between nodes;

Gamma_max, the maximum spacing between nodes;

Gamma_std, the standard deviation of the spacing
between nodes;
Usage:
table_quality filename
where

filename is the name of the file containing the point coordinates.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
TABLE_QUALITY is available in
a C++ version and
a FORTRAN90 version and
a MATLAB version.
Related Data and Programs:
DIAPHONY,
a FORTRAN90 program which
reads a file of N points in M dimensions and computes its diaphony, a measure
of point dispersion.
QUALITY,
a FORTRAN90 library which
supplies the routines that compute the
quality measures needed by TABLE_QUALITY.
STAR_DISCREPANCY,
a C++ program which
reads a TABLE file of M points in N dimensions (presumed to lie in the
unit hypercube) and computes bounds on the star discrepancy,
a measure of dispersion, by Eric Thiemard.
TABLE_LATINIZE,
a FORTRAN90 program which
reads a file of
points and creates a "latinized" version by adjusting the data.
TRIANGULATION_QUALITY,
a FORTRAN90 program which
can evaluate a triangulation of a given set of nodes.
Reference:

David Field,
Qualitative Measures for Initial Meshes,
International Journal of Numerical Methods in Engineering,
Volume 47, 2000, pages 887906.

Douglas Hardin, Edward Saff,
Discretizing Manifolds via Minimum Energy Points,
Notices of the AMS,
Volume 51, Number 10, November 2004, pages 11861194.

PerOlof Persson, Gilbert Strang,
A Simple Mesh Generator in MATLAB,
SIAM Review,
Volume 46, Number 2, pages 329345, June 2004.

Yuki Saka, Max Gunzburger, John Burkardt,
Latinized, Improved LHS, and CVT Point Sets in Hypercubes,
International Journal of Numerical Analysis and Modeling,
Volume 4, Number 34, 2007, pages 729743,
Source Code:
Examples and Tests:
List of Routines:

MAIN is the main program for TABLE_QUALITY.

SAMPLE_ROUTINE returns sample points in the user's region.

ALPHA_MEASURE determines the triangulated pointset quality measure ALPHA.

ARC_COSINE computes the arc cosine function, with argument truncation.

AREA_MEASURE determines the area ratio quality measure.

BANDWIDTH_MESH: bandwidth of finite element mesh.

BETA_MEASURE determines the pointset quality measure BETA.

CH_CAP capitalizes a single character.

CH_EQI is a case insensitive comparison of two characters for equality.

CH_TO_DIGIT returns the integer value of a base 10 digit.

CHI_MEASURE determines the pointset quality measure CHI.

D_MEASURE determines the pointset quality measure D.

DGE_DET computes the determinant of a square matrix in DGE storage.

DIAEDG chooses a diagonal edge.

DTRIS2 constructs a Delaunay triangulation of 2D vertices.

E_MEASURE determines the pointset quality measure E.

FILE_COLUMN_COUNT counts the number of columns in the first line of a file.

FILE_ROW_COUNT counts the number of row records in a file.

FIND_CLOSEST finds the nearest R point to each S point.

GAMMA_MEASURE determines the pointset quality measure GAMMA.

GET_INPUT_FILE_NAME gets the input file name.

GET_UNIT returns a free FORTRAN unit number.

H_MEASURE determines the pointset quality measure H.

I4_MODP returns the nonnegative remainder of integer division.

I4_WRAP forces an integer to lie between given limits by wrapping.

I4VEC_INDICATOR sets an I4VEC to the indicator vector.

I4VEC_PRINT prints an I4VEC.

LAMBDA_MEASURE determines the pointset quality measure LAMBDA.

LRLINE determines if a point is left of, right or, or on a directed line.

MU_MEASURE determines the pointset quality measure MU.

NU_MEASURE determines the pointset quality measure NU.

PERM_INV inverts a permutation "in place".

POINTSET_SPACING determines the minimum spacing between points in the set.

Q_MEASURE determines the triangulated pointset quality measure Q.

R0_MEASURE determines the pointset quality measure R0.

R8_UNIFORM_01 returns a unit pseudorandom R8.

R82VEC_PERMUTE permutes an R82 vector in place.

R82VEC_SORT_HEAP_INDEX_A does an indexed heap ascending sort of an R82VEC.

R8MAT_DATA_READ reads data from an R8MAT file.

R8MAT_HEADER_READ reads the header from an R8MAT file.

R8MAT_IN_01 is TRUE if the entries of an R8MAT are in the range [0,1].

R8MAT_TRANSPOSE_PRINT prints an R8MAT, transposed.

R8MAT_TRANSPOSE_PRINT_SOME prints some of an R8MAT, transposed.

R8MAT_UNIFORM_01 returns a unit pseudorandom R8MAT.

R8VEC_NORMAL_01 returns a unit pseudonormal R8VEC.

R8VEC_UNIFORM_01 returns a unit pseudorandom R8VEC.

RADIUS_MAXIMUS finds the biggest possible nonintersecting sphere.

S_TO_R8 reads an R8 from a string.

S_TO_R8VEC reads an R8VEC from a string.

S_WORD_COUNT counts the number of "words" in a string.

SAMPLE_HYPERCUBE_UNIFORM returns sample points in the unit hypercube.

SAMPLE_SPHERE_UNIFORM samples points inside the unit sphere.

SPHERE_MEASURE determines the pointset quality measure S.

SPHERE_VOLUME_ND computes the volume of a sphere in ND.

SWAPEC swaps diagonal edges until all triangles are Delaunay.

TAU_MEASURE determines the pointset quality measure TAU.

TIMESTAMP prints the current YMDHMS date as a time stamp.

VBEDG determines which boundary edges are visible to a point.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 01 May 2010.