Beispiel #1
0
 def test_direct_age_standardization(self):
     direct = np.array(
         sm.direct_age_standardization(self.e, self.b, self.s_b,
                                       self.n)).round(8)
     direct_exp = np.array([[0.02374402, 0.01920491, 0.02904848],
                            [0.02665072, 0.02177143, 0.03230508]])
     self.assertEqual(list(direct.flatten()), list(direct_exp.flatten()))
Beispiel #2
0
 def test_direct_age_standardization(self):
     direct = np.array(sm.direct_age_standardization(self.e, self.b, self.s_b, self.n)).round(8)
     direct_exp = np.array([[0.02374402, 0.01920491, 0.02904848], [0.02665072, 0.02177143, 0.03230508]])
     self.assertEquals(list(direct.flatten()), list(direct_exp.flatten()))