예제 #1
0
 def test_weighted_median(self):
     out1 = sm.weighted_median(self.d, self.w1)
     out2 = sm.weighted_median(self.d, self.w2)
     self.assertEquals(out1, 4)
     self.assertEquals(out2, 3.5)
예제 #2
0
 def test_weighted_median(self):
     out1 = sm.weighted_median(self.d, self.w1)
     out2 = sm.weighted_median(self.d, self.w2)
     self.assertEquals(out1, 4)
     self.assertEquals(out2, 3.5)