07-Jan-2022 18:18:41 cvt_1d_sampling_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2. Test CVT_1D_SAMPLING(). CVT_1D_SAMPLING(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Use sampling to implement an approximation of Lloyd's algorithm in the 1D unit interval [0,1]. Number of generators is 40 Number of iterations is 400 Number of samples is 1000 Initial generators: 1 0.010000 2 0.010256 3 0.010513 4 0.010769 5 0.011026 6 0.011282 7 0.011538 8 0.011795 9 0.012051 10 0.012308 11 0.012564 12 0.012821 13 0.013077 14 0.013333 15 0.013590 16 0.013846 17 0.014103 18 0.014359 19 0.014615 20 0.014872 21 0.015128 22 0.015385 23 0.015641 24 0.015897 25 0.016154 26 0.016410 27 0.016667 28 0.016923 29 0.017179 30 0.017436 31 0.017692 32 0.017949 33 0.018205 34 0.018462 35 0.018718 36 0.018974 37 0.019231 38 0.019487 39 0.019744 40 0.020000 Current generators: 1 0.001048 2 0.004832 3 0.009374 4 0.011984 5 0.014348 6 0.017373 7 0.020740 8 0.026197 9 0.031890 10 0.036861 11 0.045397 12 0.051445 13 0.058662 14 0.068876 15 0.079342 16 0.092418 17 0.101901 18 0.117753 19 0.133065 20 0.152989 21 0.172317 22 0.198710 23 0.221737 24 0.249825 25 0.276271 26 0.306271 27 0.342873 28 0.381141 29 0.419948 30 0.462371 31 0.507830 32 0.556681 33 0.597026 34 0.645943 35 0.698671 36 0.749649 37 0.809357 38 0.859877 39 0.915569 40 0.974158 Graphics saved as "energy.png" Graphics saved as "motion.png" Graphics saved as "evolution.png" CVT_1D_SAMPLING Normal end of execution. cvt_1d_sampling_test(): Normal end of execution. 07-Jan-2022 18:19:06