>> sparse_grid_mixed_weight_tests 05-Mar-2011 11:32:13 SPARSE_GRID_MIXED_WEIGHT_TESTS MATLAB version Call SPARSE_GRID_MIXED_WEIGHT with various arguments. All tests will use a point equality tolerance of 1.490116e-08 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 1 2 1 As a simple test, sum these weights. They should sum to exactly 4.000000 Level Weight sum Expected sum Difference 0 4.000000e+00 4.000000e+00 0.000000e+00 1 4.000000e+00 4.000000e+00 0.000000e+00 2 4.000000e+00 4.000000e+00 0.000000e+00 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 1 2 3 As a simple test, sum these weights. They should sum to exactly 4.000000 Level Weight sum Expected sum Difference 0 4.000000e+00 4.000000e+00 0.000000e+00 1 4.000000e+00 4.000000e+00 0.000000e+00 2 4.000000e+00 4.000000e+00 4.440892e-16 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 1 2 4 As a simple test, sum these weights. They should sum to exactly 4.000000 Level Weight sum Expected sum Difference 0 4.000000e+00 4.000000e+00 0.000000e+00 1 4.000000e+00 4.000000e+00 8.881784e-16 2 4.000000e+00 4.000000e+00 8.881784e-16 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 1 2 7 As a simple test, sum these weights. They should sum to exactly 2.000000 Level Weight sum Expected sum Difference 0 2.000000e+00 2.000000e+00 0.000000e+00 1 2.000000e+00 2.000000e+00 1.332268e-15 2 2.000000e+00 2.000000e+00 1.332268e-15 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 1 2 8 1.500000e+00 As a simple test, sum these weights. They should sum to exactly 2.658681 Level Weight sum Expected sum Difference 0 2.658681e+00 2.658681e+00 0.000000e+00 1 2.658681e+00 2.658681e+00 1.776357e-15 2 2.658681e+00 2.658681e+00 0.000000e+00 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 2 2 9 5.000000e-01 1.500000e+00 As a simple test, sum these weights. They should sum to exactly 3.141593 Level Weight sum Expected sum Difference 0 3.141593e+00 3.141593e+00 8.881784e-16 1 3.141593e+00 3.141593e+00 8.881784e-16 2 3.141593e+00 3.141593e+00 4.440892e-16 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 6 2.000000e+00 2 4 As a simple test, sum these weights. They should sum to exactly 1.772454 Level Weight sum Expected sum Difference 0 1.772454e+00 1.772454e+00 0.000000e+00 1 1.772454e+00 1.772454e+00 4.440892e-16 2 1.772454e+00 1.772454e+00 2.220446e-16 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 1 2 2 3 5 As a simple test, sum these weights. They should sum to exactly 7.089815 Level Weight sum Expected sum Difference 0 7.089815e+00 7.089815e+00 2.206324e-11 1 7.089815e+00 7.089815e+00 2.206235e-11 2 7.089815e+00 7.089815e+00 2.206146e-11 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 3 2 3 As a simple test, sum these weights. They should sum to exactly 4.000000 Level Weight sum Expected sum Difference 0 4.000000e+00 4.000000e+00 0.000000e+00 1 4.000000e+00 4.000000e+00 0.000000e+00 2 4.000000e+00 4.000000e+00 0.000000e+00 3 4.000000e+00 4.000000e+00 0.000000e+00 4 4.000000e+00 4.000000e+00 8.881784e-16 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 13 2 13 As a simple test, sum these weights. They should sum to exactly 4.000000 Level Weight sum Expected sum Difference 0 4.000000e+00 4.000000e+00 0.000000e+00 1 4.000000e+00 4.000000e+00 0.000000e+00 2 4.000000e+00 4.000000e+00 0.000000e+00 3 4.000000e+00 4.000000e+00 8.881784e-16 4 4.000000e+00 4.000000e+00 8.881784e-16 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 16 2 16 As a simple test, sum these weights. They should sum to exactly 4.000000 Level Weight sum Expected sum Difference 0 4.000000e+00 4.000000e+00 0.000000e+00 1 4.000000e+00 4.000000e+00 0.000000e+00 2 4.000000e+00 4.000000e+00 0.000000e+00 3 4.000000e+00 4.000000e+00 0.000000e+00 4 4.000000e+00 4.000000e+00 8.881784e-16 SPARSE_GRID_MIXED_WEIGHT_TEST: Compute the weights of a sparse grid. Each sparse grid is of spatial dimension DIM_NUM, and is made up of product grids of levels up to LEVEL_MAX. Dimension Rule Alpha Beta 1 17 2 17 As a simple test, sum these weights. They should sum to exactly 4.000000 Level Weight sum Expected sum Difference 0 4.000000e+00 4.000000e+00 0.000000e+00 1 4.000000e+00 4.000000e+00 8.881784e-16 2 4.000000e+00 4.000000e+00 1.776357e-15 3 4.000000e+00 4.000000e+00 3.552714e-15 4 4.000000e+00 4.000000e+00 1.296740e-13 SPARSE_GRID_MIXED_WEIGHT_TESTS Normal end of execution. 05-Mar-2011 11:32:13 >>