# shoreline_test

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.

### Related Data and Programs:

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

### Source Code:

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_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.

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.