Пример #1
0
 def test_rmsclippedsubregion(self):
     o = numpy.ones((800, 800))
     sub = statistics.subregion(o)
     clip = statistics.clip(sub)
     rms = statistics.rms(clip)
     self.assertEqual(rms, statistics.rms_with_clipped_subregion(o))
Пример #2
0
 def test_rmsclippedsubregion(self):
     o = numpy.ones((800, 800))
     sub = statistics.subregion(o)
     clip = statistics.clip(sub)
     rms = statistics.rms(clip)
     self.assertEqual(rms, statistics.rms_with_clipped_subregion(o))
Пример #3
0
 def test_rms(self):
     self.assertEquals(statistics.rms(numpy.ones([4,4])*4), 0)
Пример #4
0
 def test_rms(self):
     self.assertEquals(statistics.rms(numpy.ones([4, 4]) * 4), 0)