コード例 #1
0
 def testConvertSipReverse(self):
     """Test that we can convert a SipForwardTransform to a PolynomialTransform.
     """
     sipReverse = makeRandomSipReverseTransform(4)
     converted = PolynomialTransform.convert(sipReverse)
     self.assertTransformsAlmostEqual(sipReverse, converted)
コード例 #2
0
 def testConvertSipReverse(self):
     """Test that we can convert a SipForwardTransform to a PolynomialTransform.
     """
     sipReverse = makeRandomSipReverseTransform(4)
     converted = PolynomialTransform.convert(sipReverse)
     self.assertTransformsAlmostEqual(sipReverse, converted)
コード例 #3
0
 def testConvertScaledPolynomial(self):
     """Test that we can convert a ScaledPolynomialTransform to a PolynomialTransform.
     """
     scaled = makeRandomScaledPolynomialTransform(4)
     converted = PolynomialTransform.convert(scaled)
     self.assertTransformsAlmostEqual(scaled, converted)
コード例 #4
0
 def testConvertScaledPolynomial(self):
     """Test that we can convert a ScaledPolynomialTransform to a PolynomialTransform.
     """
     scaled = makeRandomScaledPolynomialTransform(4)
     converted = PolynomialTransform.convert(scaled)
     self.assertTransformsAlmostEqual(scaled, converted)