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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)