**histogram_data_2d_sample_test**,
a MATLAB program which
calls histogram_data_2d() to demonstrate how to construct a Probability Density Function (PDF)
from a table of sample data, and then to use that PDF to create new samples.

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

histogram_data_2d_sample, a MATLAB program which demonstrates how to construct a Probability Density Function (PDF) from a frequency table over a 2D domain, and then to use that PDF to create new samples.

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

**TEST01** computes 1000 samples, based on a 20x20 PDF table
that is heavily biased toward the northwest corner.

- histogram_data_2d_sample_test01.m
- histogram_data_2d_sample_test01.txt, 1000 sample points generated by the program.
- histogram_data_2d_sample_test01.png, a PNG image of the data.

**TEST02** computes 1000 samples, based on a 12x8 PDF table
that is loosely based on the population of counties in Iowa.

- histogram_data_2d_sample_test02.m
- histogram_data_2d_sample_test02.txt, 1000 sample points generated by the program.
- histogram_data_2d_sample_test02.png, a PNG image of the data.