本文整理汇总了Python中sherpa.optmethods._tstoptfct.init函数的典型用法代码示例。如果您正苦于以下问题:Python init函数的具体用法?Python init怎么用?Python init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了init函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_watson
def test_watson(self):
name = 'watson'
npar = 6
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.neldermead, name + self.nm, _tstoptfct.watson,
fmin, x0, xmin, xmax )
self.tst( optfcts.montecarlo, name + self.mc, _tstoptfct.watson,
fmin, x0, xmin, xmax )
示例2: test_trigonometric
def test_trigonometric(self):
name = 'trigonometric'
npar = 9
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.neldermead, name + self.nm,
_tstoptfct.trigonometric, fmin, x0, xmin, xmax )
self.tst( optfcts.montecarlo, name + self.mc,
_tstoptfct.trigonometric, fmin, x0, xmin, xmax )
示例3: test_biggs
def test_biggs(self):
name = 'biggs'
npar = 6
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
#self.tst( optfcts.neldermead, name + self.nm, _tstoptfct.biggs_fct,
# fmin, x0, xmin, xmax )
self.tst( optfcts.lmdif, name + self.lm, _tstoptfct.biggs,
fmin, x0, xmin, xmax )
示例4: test_powell_badly_scaled
def test_powell_badly_scaled(self):
name = 'powell_badly_scaled'
npar = 2
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.neldermead, name + self.nm,
_tstoptfct.powell_badly_scaled, fmin, x0, xmin, xmax )
self.tst( optfcts.montecarlo, name + self.mc,
_tstoptfct.powell_badly_scaled, fmin, x0, xmin, xmax )
示例5: test_wood
def test_wood(self):
name = 'wood'
npar = 4
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.neldermead, name + self.nm, _tstoptfct.wood,
fmin, x0, xmin, xmax )
self.tst( optfcts.montecarlo, name + self.mc, _tstoptfct.wood,
fmin, x0, xmin, xmax )
示例6: test_linear_fullrank0cols0rows
def test_linear_fullrank0cols0rows(self):
name = 'linear_fullrank0cols0rows'
npar = 13
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.linear_fullrank0cols0rows, fmin, x0,
xmin, xmax )
示例7: test_linear_fullrank1
def test_linear_fullrank1(self):
name = 'linear_fullrank1'
npar = 15
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.linear_fullrank1, fmin, x0, xmin, xmax )
示例8: test_broyden_banded
def test_broyden_banded(self):
name = 'broyden_banded'
npar = 18
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.broyden_banded, fmin, x0, xmin, xmax )
示例9: test_broyden_tridiagonal
def test_broyden_tridiagonal(self):
name = 'broyden_tridiagonal'
npar = 16
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.broyden_tridiagonal, fmin, x0,
xmin, xmax )
示例10: test_discrete_integral
def test_discrete_integral(self):
name = 'discrete_integral'
npar = 5
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.discrete_integral, fmin, x0, xmin,
xmax )
示例11: test_gaussian
def test_gaussian(self):
name = 'gaussian'
npar = 3
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.lmdif, name + self.lm, _tstoptfct.gaussian,
fmin, x0, xmin, xmax )
示例12: test_beale
def test_beale(self):
name = 'beale'
npar = 2
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name,_tstoptfct.beale, fmin, x0, xmin, xmax )
示例13: test_chebyquad
def test_chebyquad(self):
name = 'chebyquad'
npar = 11
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.chebyquad, fmin, x0, xmin, xmax )
示例14: test_osborne2
def test_osborne2(self):
name = 'osborne2'
npar = 11
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.osborne2, fmin, x0, xmin, xmax )
示例15: test_brown_dennis
def test_brown_dennis(self):
name = 'brown_dennis'
npar = 4
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.brown_dennis, fmin, x0, xmin, xmax )