**cvtp_1d_test**,
a MATLAB code which
calls cvtp_1d(), which
estimates a periodic centroidal Voronoi Tessellation (CVTP) in the
periodic interval [0,1], using a version of Lloyd's iteration.

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

cvtp_1d, a MATLAB code which estimates a periodic centroidal Voronoi Tessellation (CVTP) in the periodic interval [0,1], using a version of Lloyd's iteration.

- cvtp_1d_test.m a test program.
- cvtp_1d_test.sh calls all the tests.
- cvtp_1d_test.txt the output file.

- cvtp_1d_energy.png a PNG image of the "energy" of the partition, which is the averaged sum of squares of the distances between each sample point and its nearest generator.
- cvtp_1d_generators.png a PNG image of the evolution or trajectories of the generators as the iteration proceeds.
- cvtp_1d_motion.png a PNG image of the "motion" of the generators, which is the averaged distance each generator moves during an iteration.