**shoreline_test**,
a MATLAB code which
calls shoreline(), which
tries to identify and triangulate the 2D domain over which some
function F(X,Y) is nonnegative.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

shoreline, a MATLAB code which tries to identify and triangulate the 2D domain over which some function f(x,y) is nonnegative.

**SHORELINE_TEST** simply uses **shoreline** with 1, 2, 3, and 4
refinement steps, comparing the estimates of the area of the region
for a centered circle, an off-center circle, a centered ellipse, and
a slanted ellipse.

- shoreline_test.m, calls all the tests.
- shoreline_test.sh, runs all the tests.
- shoreline_test.txt, the output file.

**SHORELINE_INTEGRAL_TEST** uses **shoreline** with 1, 2, 3, and 4
refinement steps to triangulate a region implicitly defined by 0 < F(X,Y),
and then uses the resulting triangulation to estimate the integral over
that region of a circular Gaussian function, for a centered circle and
an off-center circle, with initial uniform grids of 11x11 and 21x21 points.

- shoreline_integral_test.m, calls all the tests.
- shoreline_integral_test.sh, runs all the tests.
- shoreline_integral_test.txt, the output file.

A number of functions are available to define the F(X,Y):

- annulus.m, a function which is positive between two off-centered circles.
- annulus.png, an image of the triangulated region.
- bohach1.m, a function which is positive at four roughly circular regions.
- bohach1.png, an image of the triangulated region.
- camel.m, a function which is positive in a somewhat twisted region.
- camel.png, an image of the triangulated region.
- circle.m, a function which is positive inside a circle.
- ellipse.m, a function which is positive inside an ellipse.
- nannulus.m, a function which is positive except between two off-centered circles.
- nannulus.png, an image of the triangulated region.