コード例 #1
0
ファイル: test_smoothing.py プロジェクト: lanselin/pysal
 def test_indirect_age_standardization(self):
     indirect = np.array(sm.indirect_age_standardization(
         self.e, self.b, self.s_e, self.s_b, self.n)).round(8)
     indirect_exp = np.array([[0.02372382, 0.01940230,
                               0.02900789], [0.02610803, .02154304, 0.03164035]])
     self.assertEquals(
         list(indirect.flatten()), list(indirect_exp.flatten()))
コード例 #2
0
 def test_indirect_age_standardization(self):
     indirect = np.array(sm.indirect_age_standardization(
         self.e, self.b, self.s_e, self.s_b, self.n)).round(8)
     indirect_exp = np.array([[0.02372382, 0.01940230,
                               0.02900789], [0.02610803, .02154304, 0.03164035]])
     self.assertEquals(
         list(indirect.flatten()), list(indirect_exp.flatten()))