QUALITY
Quality Measures for Pointsets in M dimensions
QUALITY
is a FORTRAN90 library which
computes measures of the quality
of dispersion of a set of N points in an M dimensional region.
The region to be analyzed is defined by a single routine which
the user may specify. We will refer to that routine as
sample_routine. This routine is simply required to return
sample points from the region.
The library includes routines for two simple regions, namely
the unit hypercube and the unit hypersphere. If either of these
regions is of interest, then the user simply has to pass the
appropriate name, either sample_hypercube_uniform or
sample_sphere_uniform. For other regions, the user should
write the appropriate version of a sampling routine.
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 unit hypersphere in M dimensional space is simply the set of
all points whose distance from the origin is 1 or less.
The quality measures computed include:

Alpha, the minimum angle divided by the maximum possible
minimum angle (for triangulated 2D datasets only);

Area, the ratio of the minimum and maximum triangle
areas (for triangulated 2D datasets only);

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

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;

Q, two times the radius of the inscribed circle
divided by the radius of the circumscribed circle
(for triangulated 2D datasets only);

R0, the Riesz S=0 energy;

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

Tau, the second moment trace measure;
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
QUALITY is available in
a C++ version and
a FORTRAN90 version and
a MATLAB version.
Related Programs:
DIAPHONY,
a FORTRAN90 program which
reads a file of N points in M dimensions and computes its diaphony, a measure
of point dispersion.
POINT_MERGE,
a FORTRAN90 library which
considers N points in M dimensional space, and counts or indexes
the unique or "tolerably unique" items.
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_QUALITY,
a FORTRAN90 program which
computes the quality measures of a dataset read from a file.
which can analyze a dataset that is stored in a file.
TET_MESH,
a FORTRAN90 library which
carries out various operations on tetrahedral meshes.
TET_MESH_QUALITY,
a FORTRAN90 program which
computes quality measures of a tetrahedral mesh.
TRIANGULATION_QUALITY,
a FORTRAN90 program which
computes quality measures of a triangulation.
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:

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 ( kind = 4 ) 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 ( kind = 4 ) division.

I4_WRAP forces an I4 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 February 2010.