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))
def test_rms(self): self.assertEquals(statistics.rms(numpy.ones([4,4])*4), 0)
def test_rms(self): self.assertEquals(statistics.rms(numpy.ones([4, 4]) * 4), 0)