Beispiel #1
0
 def test_diff(self):
     kw = dict(bounds=self.bounds, A=self.A, b=self.b, **OPTS)
     ret = levmar(self.mods235, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #2
0
 def test_der(self):
     kw = dict(jacf=self.jac_combust, bounds=self.bounds, **OPTS)
     ret = levmar(self.combust, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt, decimal=1)
Beispiel #3
0
 def test_cdiff(self):
     kw = dict(bounds=self.bounds, cdif=True, **OPTS)
     ret = levmar(self.combust, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt, decimal=1)
Beispiel #4
0
 def test_diff(self):
     kw = dict(args=(self.x,), **OPTS)
     ret = levmar(self.meyer, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt, decimal=1)
Beispiel #5
0
 def test_cdiff(self):
     kw = dict(bounds=self.bounds, cdif=True, **OPTS)
     ret = levmar(self.hatfldc, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #6
0
 def test_cdiff(self):
     kw = dict(bounds=self.bounds, A=self.A, b=self.b, cdif=True, **OPTS)
     ret = levmar(self.mod1hs52, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #7
0
 def test_cdiff(self):
     kw = dict(C=self.C, d=self.d, cdif=True, **OPTS)
     ret = levmar(self.mod2hs52, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #8
0
 def test_diff(self):
     kw = dict(OPTS)
     p, covr, info = levmar(self.rosen, self.p0, self.x, **kw)
     assert_array_almost_equal(p, self.pt)
Beispiel #9
0
 def test_der(self):
     kw = dict(jacf=self.jac_hs51, A=self.A, b=self.b, **OPTS)
     ret = levmar(self.hs51, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt, decimal=4)
Beispiel #10
0
 def test_cdiff(self):
     kw = dict(cdif=True, **OPTS)
     ret = levmar(self.helval, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #11
0
 def test_diff(self):
     kw = dict(A=self.A, b=self.b, **OPTS)
     ret = levmar(self.bt3, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt, decimal=4)
Beispiel #12
0
 def test_der(self):
     kw = dict(jacf=self.jac_helval, **OPTS)
     ret = levmar(self.helval, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #13
0
 def test_cdiff(self):
     kw = dict(args=(self.x,), cdif=True, **OPTS)
     ret = levmar(self.osborne, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt, decimal=4)
Beispiel #14
0
 def test_der(self):
     kw = dict(args=(self.x,), jacf=self.jac_osborne, **OPTS)
     ret = levmar(self.osborne, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt, decimal=4)
Beispiel #15
0
 def test_der(self):
     kw = dict(jacf=self.jac_powell, **OPTS)
     p, covr, info = levmar(self.powell, self.p0, self.x, **kw)
     assert_array_almost_equal(p, self.pt)
Beispiel #16
0
 def test_cdiff(self):
     kw = dict(A=self.A, b=self.b, cdif=True, **OPTS)
     ret = levmar(self.hs51, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt, decimal=3)
Beispiel #17
0
 def test_der(self):
     kw = dict(jacf=self.jac_mod1hs52, bounds=self.bounds, A=self.A, b=self.b, **OPTS)
     ret = levmar(self.mod1hs52, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #18
0
 def test_diff(self):
     kw = dict(bounds=self.bounds, **OPTS)
     ret = levmar(self.hs21, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #19
0
 def test_der(self):
     kw = dict(jacf=self.jac_mod2hs52, C=self.C, d=self.d, **OPTS)
     ret = levmar(self.mod2hs52, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #20
0
 def test_der(self):
     kw = dict(jacf=self.jac_hatfldc, bounds=self.bounds, **OPTS)
     ret = levmar(self.hatfldc, self.p0, self.y, **kw)
     assert_array_almost_equal(ret[0], self.pt)
Beispiel #21
0
 def test_cdiff(self):
     kw = dict(cdif=True, **OPTS)
     p, covr, info = levmar(self.powell, self.p0, self.x, **kw)
     assert_array_almost_equal(p, self.pt)
Beispiel #22
0
 def test_der(self):
     kw = dict(jacf=self.jac_modros, **OPTS)
     p, covr, info = levmar(self.modros, self.p0, self.x, **kw)
     assert_array_almost_equal(p, self.pt, decimal=5)