예제 #1
0
    def test_Wald_2(self):
        MatrixPay = [[2, 0, 2], [0, 1, 1], [6, 0, 0]]

        right_result_list = [0, 0, 0]

        result_list = main.Wald(MatrixPay)

        assert array_equal(result_list, right_result_list) == True
예제 #2
0
    def test_criterion_Wald_1(self):
        MatrixPay = [[8, 2, 6, 8], [3, 2, 4, 3], [4, 1, 6, 1]]

        right_result_list = [2, 2, 1]

        result_list = main.Wald(MatrixPay)

        assert array_equal(result_list, right_result_list) == True
예제 #3
0
    def test_Wald_1(self):
        MatrixPay = [[1, 4, 5, 9], [3, 8, 4, 3], [4, 6, 6, 2]]

        right_result_list = [1, 3, 2]

        result_list = main.Wald(MatrixPay)

        assert array_equal(result_list, right_result_list) == True
예제 #4
0
    def test_Wald_1(self):
        MatrixPay = [[172, 81, 193, 560], [114, 160, 108, 325],
                     [56, 100, 156, 350]]

        right_result_list = [81, 108, 56]

        result_list = main.Wald(MatrixPay)

        assert array_equal(result_list, right_result_list) == True
예제 #5
0
    def test_criterion_Wald_2(self):
        MatrixPay = [[5, 9, 1, 2, 2], [9, 3, 2, 5, 1], [1, 2, 5, 2, 8],
                     [7, 3, 7, 3, 5], [7, 6, 3, 8, 3]]

        right_result_list = [1, 1, 1, 3, 3]

        result_list = main.Wald(MatrixPay)

        assert array_equal(result_list, right_result_list) == True
예제 #6
0
    def test_Wald_2(self):
        MatrixPay = [[5, 3, 4, 2, 1], [5, 3, 2, 1, 1], [1, 2, 5, 4, 3],
                     [7, 6, 7, 3, 1], [1, 2, 3, 4, 3]]

        right_result_list = [1, 1, 1, 1, 1]

        result_list = main.Wald(MatrixPay)

        assert array_equal(result_list, right_result_list) == True