Пример #1
0
 def test_1d_with_weights(self):
     lsq = leastsquare_1d(self.data, self.model1D, np.ones(100), self.x)
     assert_almost_equal(lsq, self.lsq_exp)
Пример #2
0
 def test_1d_no_weights(self):
     lsq = leastsquare_1d(self.data, self.model1D, None, self.x)
     assert_almost_equal(lsq, self.lsq_exp)