nearest_interp_1d_test 22-Feb-2019 08:01:29 nearest_interp_1d_test: MATLAB version Test nearest_interp_1d. The R8LIB library is needed. The test needs the TEST_INTERP library. NEAREST_INTERP_1D_TEST01 Sample the nearest neighbor interpolant for problem #1 X, Y for problem 1 1: 0 4 2: 1.8 6 3: 3.6 6 4: 5.4 5 5: 7.2 1 6: 9 1 7: 10.8 4 8: 12.6 3 9: 14.4 3 10: 16.2 4 11: 18 0 NEAREST_INTERP_1D_TEST01 Sample the nearest neighbor interpolant for problem #2 X, Y for problem 2 1: 0 0 2: 3.1 5 3: 6.2 8.66 4: 9.3 10 5: 12.4 30.6 6: 15.5 30.6 7: 18.6 30.6 8: 21.7 10 9: 24.8 8.66 10: 27.9 5 11: 31 0 NEAREST_INTERP_1D_TEST01 Sample the nearest neighbor interpolant for problem #3 X, Y for problem 3 1: 0 0 2: 1.5 10 3: 3 10 4: 4.5 10 5: 6 10 6: 7.5 10 7: 9 10.5 8: 10.5 15 9: 12 50 10: 13.5 60 11: 15 85 NEAREST_INTERP_1D_TEST01 Sample the nearest neighbor interpolant for problem #4 X, Y for problem 4 1: 0 0 2: 0.1 1 3: 0.2 1 4: 0.3 1 5: 0.4 1 6: 0.5 1 7: 0.6 0.3 8: 0.7 0.3 9: 0.8 0.3 10: 0.9 0.1 11: 1 1 NEAREST_INTERP_1D_TEST01 Sample the nearest neighbor interpolant for problem #5 X, Y for problem 5 1: 0 0 2: 0.1 0.9 3: 0.2 0.95 4: 0.3 0.9 5: 0.4 0.1 6: 0.5 0.05 7: 0.6 0.05 8: 0.7 0.05 9: 0.8 0.2 10: 0.9 0.2 11: 1 1 NEAREST_INTERP_1D_TEST01 Sample the nearest neighbor interpolant for problem #6 X, Y for problem 6 1: 595 0.644 2: 643 0.639 3: 691 0.644 4: 739 0.676 5: 787 0.683 6: 835 0.763 7: 883 1.881 8: 931 0.916 9: 979 0.615 10: 1027 0.601 11: 1075 0.608 NEAREST_INTERP_1D_TEST01 Sample the nearest neighbor interpolant for problem #7 X, Y for problem 7 1: 0 1 2: 0.5 1 3: 1 2 4: 1.5 2 5: 2 2 6: 2.5 2 7: 3 2 8: 3.5 2 9: 4 2 10: 4.5 2 11: 5 1 NEAREST_INTERP_1D_TEST01 Sample the nearest neighbor interpolant for problem #8 X, Y for problem 8 1: -1 1 2: -0.8 0.64 3: -0.6 0.36 4: -0.4 0.16 5: -0.2 0.04 6: 0 0 7: 0.2 0.04 8: 0.4 0.16 9: 0.6 0.36 10: 0.8 0.64 11: 1 1 NEAREST_INTERP_1D_TEST02: Interpolate data from TEST_INTERP problem #1. Number of data points = 18 Data array: Row: 1 2 Col 1: 0.000000 4.000000 2: 1.000000 5.000000 3: 2.000000 6.000000 4: 4.000000 6.000000 5: 5.000000 5.000000 6: 6.000000 3.000000 7: 7.000000 1.000000 8: 8.000000 1.000000 9: 9.000000 1.000000 10: 10.000000 3.000000 11: 11.000000 4.000000 12: 12.000000 4.000000 13: 13.000000 3.000000 14: 14.000000 3.000000 15: 15.000000 4.000000 16: 16.000000 4.000000 17: 17.000000 3.000000 18: 18.000000 0.000000 L2 interpolation error averaged per interpolant node = 0 Created plot file "p01_data.png". Created plot file "p01_nearest.png". NEAREST_INTERP_1D_TEST02: Interpolate data from TEST_INTERP problem #2. Number of data points = 18 Data array: Row: 1 2 Col 1: 0.000000 0.000000 2: 1.340000 5.000000 3: 5.000000 8.660000 4: 10.000000 10.000000 5: 10.600000 10.400000 6: 10.700000 12.000000 7: 10.705000 28.600000 8: 10.800000 30.200000 9: 11.400000 30.600000 10: 19.600000 30.600000 11: 20.200000 30.200000 12: 20.295000 28.600000 13: 20.300000 12.000000 14: 20.400000 10.400000 15: 21.000000 10.000000 16: 26.000000 8.660000 17: 29.660000 5.000000 18: 31.000000 0.000000 L2 interpolation error averaged per interpolant node = 0 Created plot file "p02_data.png". Created plot file "p02_nearest.png". NEAREST_INTERP_1D_TEST02: Interpolate data from TEST_INTERP problem #3. Number of data points = 11 Data array: Row: 1 2 Col 1: 0.000000 0.000000 2: 2.000000 10.000000 3: 3.000000 10.000000 4: 5.000000 10.000000 5: 6.000000 10.000000 6: 8.000000 10.000000 7: 9.000000 10.500000 8: 11.000000 15.000000 9: 12.000000 50.000000 10: 14.000000 60.000000 11: 15.000000 85.000000 L2 interpolation error averaged per interpolant node = 0 Created plot file "p03_data.png". Created plot file "p03_nearest.png". NEAREST_INTERP_1D_TEST02: Interpolate data from TEST_INTERP problem #4. Number of data points = 8 Data array: Row: 1 2 Col 1: 0.000000 0.000000 2: 0.050000 0.700000 3: 0.100000 1.000000 4: 0.200000 1.000000 5: 0.800000 0.300000 6: 0.850000 0.050000 7: 0.900000 0.100000 8: 1.000000 1.000000 L2 interpolation error averaged per interpolant node = 0 Created plot file "p04_data.png". Created plot file "p04_nearest.png". NEAREST_INTERP_1D_TEST02: Interpolate data from TEST_INTERP problem #5. Number of data points = 9 Data array: Row: 1 2 Col 1: 0.000000 0.000000 2: 0.100000 0.900000 3: 0.200000 0.950000 4: 0.300000 0.900000 5: 0.400000 0.100000 6: 0.500000 0.050000 7: 0.600000 0.050000 8: 0.800000 0.200000 9: 1.000000 1.000000 L2 interpolation error averaged per interpolant node = 0 Created plot file "p05_data.png". Created plot file "p05_nearest.png". NEAREST_INTERP_1D_TEST02: Interpolate data from TEST_INTERP problem #6. Number of data points = 49 Data array: Row: 1 2 Col 1: 595.000000 0.644000 2: 605.000000 0.622000 3: 615.000000 0.638000 4: 625.000000 0.649000 5: 635.000000 0.652000 6: 645.000000 0.639000 7: 655.000000 0.646000 8: 665.000000 0.657000 9: 675.000000 0.652000 10: 685.000000 0.655000 11: 695.000000 0.644000 12: 705.000000 0.663000 13: 715.000000 0.663000 14: 725.000000 0.668000 15: 735.000000 0.676000 16: 745.000000 0.676000 17: 755.000000 0.686000 18: 765.000000 0.679000 19: 775.000000 0.678000 20: 785.000000 0.683000 21: 795.000000 0.694000 22: 805.000000 0.699000 23: 815.000000 0.710000 24: 825.000000 0.730000 25: 835.000000 0.763000 26: 845.000000 0.812000 27: 855.000000 0.907000 28: 865.000000 1.044000 29: 875.000000 1.336000 30: 885.000000 1.881000 31: 895.000000 2.169000 32: 905.000000 2.075000 33: 915.000000 1.598000 34: 925.000000 1.211000 35: 935.000000 0.916000 36: 945.000000 0.746000 37: 955.000000 0.672000 38: 965.000000 0.627000 39: 975.000000 0.615000 40: 985.000000 0.607000 41: 995.000000 0.606000 42: 1005.000000 0.609000 43: 1015.000000 0.603000 44: 1025.000000 0.601000 45: 1035.000000 0.603000 46: 1045.000000 0.601000 47: 1055.000000 0.611000 48: 1065.000000 0.601000 49: 1075.000000 0.608000 L2 interpolation error averaged per interpolant node = 0 Created plot file "p06_data.png". Created plot file "p06_nearest.png". NEAREST_INTERP_1D_TEST02: Interpolate data from TEST_INTERP problem #7. Number of data points = 4 Data array: Row: 1 2 Col 1: 0.000000 1.000000 2: 1.000000 2.000000 3: 4.000000 2.000000 4: 5.000000 1.000000 L2 interpolation error averaged per interpolant node = 0 Created plot file "p07_data.png". Created plot file "p07_nearest.png". NEAREST_INTERP_1D_TEST02: Interpolate data from TEST_INTERP problem #8. Number of data points = 12 Data array: Row: 1 2 Col 1: -1.000000 1.000000 2: -0.800000 0.640000 3: -0.600000 0.360000 4: -0.400000 0.160000 5: -0.200000 0.040000 6: 0.000000 0.000000 7: 0.200000 0.040000 8: 0.200010 0.050000 9: 0.400000 0.160000 10: 0.600000 0.360000 11: 0.800000 0.640000 12: 1.000000 1.000000 L2 interpolation error averaged per interpolant node = 0 Created plot file "p08_data.png". Created plot file "p08_nearest.png". nearest_interp_1d_test: Normal end of execution. 22-Feb-2019 08:01:37 diary off