Exemple #1
0
 def test_1_wlinear(self):
     c1,  c11, chisq = fit.wmul(self.x, self.w, self.y)
     assert(Numeric.absolute(c1 - self.b)<self._eps)
     y, yerr =  fit.mul_est(1, c1, c11)
     assert(Numeric.absolute(y - (self.a+self.b*1)) < self._eps)
Exemple #2
0
 def test_1_wlinear(self):
     c1, c11, chisq = fit.wmul(self.x, self.w, self.y)
     assert (Numeric.absolute(c1 - self.b) < self._eps)
     y, yerr = fit.mul_est(1, c1, c11)
     assert (Numeric.absolute(y - (self.a + self.b * 1)) < self._eps)
Exemple #3
0
 def test_0_linear(self):
     c1, c11, sumsq =  fit.mul(self.x, self.y)
     assert(Numeric.absolute(c1 - self.b)<self._eps)
     y, yerr =  fit.mul_est(1, c1, c11)
     assert(Numeric.absolute(y - (self.a+self.b*1)) < self._eps)
     assert(Numeric.absolute(yerr) < self._eps)
Exemple #4
0
 def test_0_linear(self):
     c1, c11, sumsq = fit.mul(self.x, self.y)
     assert (Numeric.absolute(c1 - self.b) < self._eps)
     y, yerr = fit.mul_est(1, c1, c11)
     assert (Numeric.absolute(y - (self.a + self.b * 1)) < self._eps)
     assert (Numeric.absolute(yerr) < self._eps)