예제 #1
0
 def test_moran_rate(self):
     lm = moran.Moran_Local_Rate(self.e,
                                 self.b,
                                 self.w,
                                 transformation="r",
                                 permutations=99)
     self.assertAlmostEquals(lm.z_sim[0], -0.13699844503985936)
     self.assertAlmostEquals(lm.p_z_sim[0], 0.44551601210081715)
예제 #2
0
 def test_moran_rate(self):
     lm = moran.Moran_Local_Rate(self.e,
                                 self.b,
                                 self.w,
                                 transformation="r",
                                 permutations=99)
     self.assertAlmostEquals(lm.z_sim[0], -0.27099998923550017)
     self.assertAlmostEquals(lm.p_z_sim[0], 0.39319552026912641)
     self.assertAlmostEquals(lm.VI_sim, 0.21879403675396222)