27 February 2022 01:48:43 PM SOBOL_TEST C++ version Test the SOBOL library. OR_TEST The C++ function ^ computes the bitwise exclusive OR of two integers. I J I^J 22 96 118 83 56 107 41 6 47 26 11 17 4 64 68 6 45 43 40 76 100 80 0 80 90 35 121 9 1 8 I4_BIT_HI1_TEST I4_BIT_HI1 returns the location of the high bit in an integer. I I4_BIT_HI1(I) 22 5 96 7 83 7 56 6 41 6 6 3 26 5 11 4 4 3 64 7 I4_BIT_LO0_TEST I4_BIT_LO0 returns the location of the low 0 bit in an integer. I I4_BIT_LO0(I) 22 1 96 1 83 3 56 1 41 2 6 1 26 1 11 3 4 1 64 1 TEST04 I4_SOBOL computes the next element of a Sobol sequence. In this test, we call I4_SOBOL repeatedly. Using dimension DIM_NUM = 2 Seed Seed I4_SOBOL In Out 0 1 0 0 1 2 0.5 0.5 2 3 0.75 0.25 3 4 0.25 0.75 4 5 0.375 0.375 5 6 0.875 0.875 6 7 0.625 0.125 7 8 0.125 0.625 8 9 0.1875 0.3125 9 10 0.6875 0.8125 10 11 0.9375 0.0625 11 12 0.4375 0.5625 .................... 95 96 0.0546875 0.929688 96 97 0.0390625 0.132812 97 98 0.539062 0.632812 98 99 0.789062 0.382812 99 100 0.289062 0.882812 100 101 0.414062 0.257812 101 102 0.914062 0.757812 102 103 0.664062 0.0078125 103 104 0.164062 0.507812 104 105 0.226562 0.445312 105 106 0.726562 0.945312 106 107 0.976562 0.195312 107 108 0.476562 0.695312 108 109 0.351562 0.0703125 109 110 0.851562 0.570312 110 111 0.601562 0.320312 Using dimension DIM_NUM = 3 Seed Seed I4_SOBOL In Out 0 1 0 0 0 1 2 0.5 0.5 0.5 2 3 0.75 0.25 0.75 3 4 0.25 0.75 0.25 4 5 0.375 0.375 0.625 5 6 0.875 0.875 0.125 6 7 0.625 0.125 0.375 7 8 0.125 0.625 0.875 8 9 0.1875 0.3125 0.3125 9 10 0.6875 0.8125 0.8125 10 11 0.9375 0.0625 0.5625 11 12 0.4375 0.5625 0.0625 .................... 95 96 0.0546875 0.929688 0.101562 96 97 0.0390625 0.132812 0.929688 97 98 0.539062 0.632812 0.429688 98 99 0.789062 0.382812 0.179688 99 100 0.289062 0.882812 0.679688 100 101 0.414062 0.257812 0.304688 101 102 0.914062 0.757812 0.804688 102 103 0.664062 0.0078125 0.554688 103 104 0.164062 0.507812 0.0546875 104 105 0.226562 0.445312 0.742188 105 106 0.726562 0.945312 0.242188 106 107 0.976562 0.195312 0.492188 107 108 0.476562 0.695312 0.992188 108 109 0.351562 0.0703125 0.117188 109 110 0.851562 0.570312 0.617188 110 111 0.601562 0.320312 0.867188 Using dimension DIM_NUM = 4 Seed Seed I4_SOBOL In Out 0 1 0 0 0 0 1 2 0.5 0.5 0.5 0.5 2 3 0.75 0.25 0.75 0.25 3 4 0.25 0.75 0.25 0.75 4 5 0.375 0.375 0.625 0.125 5 6 0.875 0.875 0.125 0.625 6 7 0.625 0.125 0.375 0.375 7 8 0.125 0.625 0.875 0.875 8 9 0.1875 0.3125 0.3125 0.6875 9 10 0.6875 0.8125 0.8125 0.1875 10 11 0.9375 0.0625 0.5625 0.9375 11 12 0.4375 0.5625 0.0625 0.4375 .................... 95 96 0.0546875 0.929688 0.101562 0.960938 96 97 0.0390625 0.132812 0.929688 0.351562 97 98 0.539062 0.632812 0.429688 0.851562 98 99 0.789062 0.382812 0.179688 0.101562 99 100 0.289062 0.882812 0.679688 0.601562 100 101 0.414062 0.257812 0.304688 0.476562 101 102 0.914062 0.757812 0.804688 0.976562 102 103 0.664062 0.0078125 0.554688 0.226562 103 104 0.164062 0.507812 0.0546875 0.726562 104 105 0.226562 0.445312 0.742188 0.914062 105 106 0.726562 0.945312 0.242188 0.414062 106 107 0.976562 0.195312 0.492188 0.664062 107 108 0.476562 0.695312 0.992188 0.164062 108 109 0.351562 0.0703125 0.117188 0.789062 109 110 0.851562 0.570312 0.617188 0.289062 110 111 0.601562 0.320312 0.867188 0.539062 TEST05 I4_SOBOL computes the next element of a Sobol sequence. In this test, we demonstrate how the SEED can be manipulated to skip ahead in the sequence, or to come back to any part of the sequence. Using dimension DIM_NUM = 3 Seed Seed I4_SOBOL In Out 0 1 0 0 0 1 2 0.5 0.5 0.5 2 3 0.75 0.25 0.75 3 4 0.25 0.75 0.25 4 5 0.375 0.375 0.625 5 6 0.875 0.875 0.125 6 7 0.625 0.125 0.375 7 8 0.125 0.625 0.875 8 9 0.1875 0.3125 0.3125 9 10 0.6875 0.8125 0.8125 10 11 0.9375 0.0625 0.5625 Jump ahead by increasing SEED: Seed Seed I4_SOBOL In Out 100 101 0.414062 0.257812 0.304688 101 102 0.914062 0.757812 0.804688 102 103 0.664062 0.0078125 0.554688 103 104 0.164062 0.507812 0.0546875 104 105 0.226562 0.445312 0.742188 Jump back by decreasing SEED: Seed Seed I4_SOBOL In Out 3 4 0.25 0.75 0.25 4 5 0.375 0.375 0.625 5 6 0.875 0.875 0.125 6 7 0.625 0.125 0.375 7 8 0.125 0.625 0.875 8 9 0.1875 0.3125 0.3125 9 10 0.6875 0.8125 0.8125 10 11 0.9375 0.0625 0.5625 11 12 0.4375 0.5625 0.0625 12 13 0.3125 0.1875 0.9375 13 14 0.8125 0.6875 0.4375 Jump ahead by increasing SEED: Seed Seed I4_SOBOL In Out 98 99 0.789062 0.382812 0.179688 99 100 0.289062 0.882812 0.679688 100 101 0.414062 0.257812 0.304688 101 102 0.914062 0.757812 0.804688 102 103 0.664062 0.0078125 0.554688 TEST055 The C++ function ^ computes the bitwise exclusive OR of two LONG LONG INT's. I J I^J 22 96 118 83 56 107 41 6 47 26 11 17 4 64 68 6 45 43 40 76 100 80 0 80 90 35 121 9 1 8 I8_BIT_HI1_TEST I8_BIT_HI1 returns the location of the high bit in an integer. I I8_BIT_HI1(I) 22 5 96 7 83 7 56 6 41 6 6 3 26 5 11 4 4 3 64 7 I8_BIT_LO0_TEST I8_BIT_LO0 returns the location of the low zero bit in an integer. I I8_BIT_LO0(I) 22 1 96 1 83 3 56 1 41 2 6 1 26 1 11 3 4 1 64 1 TEST08 I8_SOBOL computes the next element of a Sobol sequence. In this test, we call I8_SOBOL repeatedly. Using dimension DIM_NUM = 2 Seed Seed I8_SOBOL In Out 0 1 0 0 1 2 0.5 0.5 2 3 0.75 0.25 3 4 0.25 0.75 4 5 0.375 0.375 5 6 0.875 0.875 6 7 0.625 0.125 7 8 0.125 0.625 8 9 0.1875 0.3125 9 10 0.6875 0.8125 10 11 0.9375 0.0625 11 12 0.4375 0.5625 .................... 95 96 0.0546875 0.929688 96 97 0.0390625 0.132812 97 98 0.539062 0.632812 98 99 0.789062 0.382812 99 100 0.289062 0.882812 100 101 0.414062 0.257812 101 102 0.914062 0.757812 102 103 0.664062 0.0078125 103 104 0.164062 0.507812 104 105 0.226562 0.445312 105 106 0.726562 0.945312 106 107 0.976562 0.195312 107 108 0.476562 0.695312 108 109 0.351562 0.0703125 109 110 0.851562 0.570312 110 111 0.601562 0.320312 Using dimension DIM_NUM = 3 Seed Seed I8_SOBOL In Out 0 1 0 0 0 1 2 0.5 0.5 0.5 2 3 0.75 0.25 0.75 3 4 0.25 0.75 0.25 4 5 0.375 0.375 0.625 5 6 0.875 0.875 0.125 6 7 0.625 0.125 0.375 7 8 0.125 0.625 0.875 8 9 0.1875 0.3125 0.3125 9 10 0.6875 0.8125 0.8125 10 11 0.9375 0.0625 0.5625 11 12 0.4375 0.5625 0.0625 .................... 95 96 0.0546875 0.929688 0.101562 96 97 0.0390625 0.132812 0.929688 97 98 0.539062 0.632812 0.429688 98 99 0.789062 0.382812 0.179688 99 100 0.289062 0.882812 0.679688 100 101 0.414062 0.257812 0.304688 101 102 0.914062 0.757812 0.804688 102 103 0.664062 0.0078125 0.554688 103 104 0.164062 0.507812 0.0546875 104 105 0.226562 0.445312 0.742188 105 106 0.726562 0.945312 0.242188 106 107 0.976562 0.195312 0.492188 107 108 0.476562 0.695312 0.992188 108 109 0.351562 0.0703125 0.117188 109 110 0.851562 0.570312 0.617188 110 111 0.601562 0.320312 0.867188 Using dimension DIM_NUM = 4 Seed Seed I8_SOBOL In Out 0 1 0 0 0 0 1 2 0.5 0.5 0.5 0.5 2 3 0.75 0.25 0.75 0.25 3 4 0.25 0.75 0.25 0.75 4 5 0.375 0.375 0.625 0.125 5 6 0.875 0.875 0.125 0.625 6 7 0.625 0.125 0.375 0.375 7 8 0.125 0.625 0.875 0.875 8 9 0.1875 0.3125 0.3125 0.6875 9 10 0.6875 0.8125 0.8125 0.1875 10 11 0.9375 0.0625 0.5625 0.9375 11 12 0.4375 0.5625 0.0625 0.4375 .................... 95 96 0.0546875 0.929688 0.101562 0.960938 96 97 0.0390625 0.132812 0.929688 0.351562 97 98 0.539062 0.632812 0.429688 0.851562 98 99 0.789062 0.382812 0.179688 0.101562 99 100 0.289062 0.882812 0.679688 0.601562 100 101 0.414062 0.257812 0.304688 0.476562 101 102 0.914062 0.757812 0.804688 0.976562 102 103 0.664062 0.0078125 0.554688 0.226562 103 104 0.164062 0.507812 0.0546875 0.726562 104 105 0.226562 0.445312 0.742188 0.914062 105 106 0.726562 0.945312 0.242188 0.414062 106 107 0.976562 0.195312 0.492188 0.664062 107 108 0.476562 0.695312 0.992188 0.164062 108 109 0.351562 0.0703125 0.117188 0.789062 109 110 0.851562 0.570312 0.617188 0.289062 110 111 0.601562 0.320312 0.867188 0.539062 TEST09 I8_SOBOL computes the next element of a Sobol sequence. In this test, we demonstrate how the SEED can be manipulated to skip ahead in the sequence, or to come back to any part of the sequence. Using dimension DIM_NUM = 3 Seed Seed I8_SOBOL In Out 0 1 0 0 0 1 2 0.5 0.5 0.5 2 3 0.75 0.25 0.75 3 4 0.25 0.75 0.25 4 5 0.375 0.375 0.625 5 6 0.875 0.875 0.125 6 7 0.625 0.125 0.375 7 8 0.125 0.625 0.875 8 9 0.1875 0.3125 0.3125 9 10 0.6875 0.8125 0.8125 10 11 0.9375 0.0625 0.5625 Jump ahead by increasing SEED: Seed Seed I8_SOBOL In Out 100 101 0.414062 0.257812 0.304688 101 102 0.914062 0.757812 0.804688 102 103 0.664062 0.0078125 0.554688 103 104 0.164062 0.507812 0.0546875 104 105 0.226562 0.445312 0.742188 Jump back by decreasing SEED: Seed Seed I8_SOBOL In Out 3 4 0.25 0.75 0.25 4 5 0.375 0.375 0.625 5 6 0.875 0.875 0.125 6 7 0.625 0.125 0.375 7 8 0.125 0.625 0.875 8 9 0.1875 0.3125 0.3125 9 10 0.6875 0.8125 0.8125 10 11 0.9375 0.0625 0.5625 11 12 0.4375 0.5625 0.0625 12 13 0.3125 0.1875 0.9375 13 14 0.8125 0.6875 0.4375 Jump ahead by increasing SEED: Seed Seed I8_SOBOL In Out 98 99 0.789062 0.382812 0.179688 99 100 0.289062 0.882812 0.679688 100 101 0.414062 0.257812 0.304688 101 102 0.914062 0.757812 0.804688 102 103 0.664062 0.0078125 0.554688 SOBOL_TEST Normal end of execution. 27 February 2022 01:48:43 PM