**histogram_pdf_sample_test**,
a MATLAB program which
calls histogram_pdf_sample() to demonstrate how sampling can be done by starting with the
formula for a PDF, creating a histogram, constructing a
histogram for the CDF, and then sampling.

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

histogram_pdf_sample, a MATLAB library which demonstrates how sampling can be done by starting with the formula for a PDF, creating a histogram, constructing a histogram for the CDF, and then sampling.

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

CHEBYSHEV1 is a test case for the PDF rho(x)=1/sqrt(1-x*x)/pi for x between -1 and +1, which is infinite at the endpoints.

- chebyshev1_cdf.m, evaluates the CDF.
- chebyshev1_pdf.m, evaluates the PDF.
- chebyshev1_test.m
- chebyshev1_pdf.png
- chebyshev1_cdf.png
- chebyshev1_histogram.png

CHEBYSHEV13 is a test case for the PDF rho(x)=(1-x*x)^(-1/6) for x between -1 and +1, which is infinite at the endpoints. (In order to integrate to 1 over [-1,+1], multiply by the factor gamma(4/3)/sqrt(pi)/gamma(5.6).)

- chebyshev13_cdf.m, evaluates the CDF.
- chebyshev13_pdf.m, evaluates the PDF.
- chebyshev13_test.m
- chebyshev13_pdf.png
- chebyshev13_cdf.png
- chebyshev13_histogram.png

CHEBYSHEV2 is a test case for the PDF rho(x)=2*sqrt(1-x*x)/pi for x between -1 and +1.

- chebyshev2_cdf.m, evaluates the CDF.
- chebyshev2_pdf.m, evaluates the PDF.
- chebyshev2_test.m
- chebyshev2_pdf.png
- chebyshev2_cdf.png
- chebyshev2_histogram.png