Module Import alias identifier ImportFrom alias Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Return BinOpAdd BinOpSub NameLoad BinOpDiv Num BinOpMult NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Return BinOpAdd BinOpSub NameLoad BinOpDiv NameLoad BinOpMult NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpAdd BinOpAdd BinOpDiv Num BinOpMult Num NameLoad Num BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Num TupleLoad Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareGt AttributeLoad NameLoad attr Num Assert CompareLt AttributeLoad NameLoad attr Num Assert CompareLt AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num keyword Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpAdd BinOpAdd BinOpDiv Num BinOpMult Num NameLoad Num BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Assign AttributeStore SubscriptLoad NameLoad Index Str attr Num Assign AttributeStore SubscriptLoad NameLoad Index Str attr Num Assign AttributeStore SubscriptLoad NameLoad Index Str attr Num Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assert CompareGt AttributeLoad NameLoad attr Num Assert CompareLt AttributeLoad NameLoad attr Num Assert CompareLt AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num keyword Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Expr Call NameLoad
N/A N/A numpy np numpy.testing assert_allclose N/A lmfit lmfit_testutils assert_paramval residual N/A N/A params x data N/A N/A N/A a N/A N/A params N/A a value N/A b N/A N/A params N/A b value N/A N/A N/A data N/A 1.0 N/A a x b N/A residual2 N/A N/A params x data N/A N/A N/A a N/A N/A params N/A a value N/A b N/A N/A params N/A b value N/A c N/A N/A params N/A c value N/A N/A N/A data N/A c N/A a x b N/A test_confidence1 N/A N/A N/A N/A N/A x N/A N/A np linspace 0.3 10 100 N/A N/A N/A N/A np random seed 0 N/A y N/A N/A N/A 1 N/A 0.1 x 2 N/A 0.1 N/A N/A N/A np random randn N/A x size N/A pars N/A N/A lmfit Parameters N/A N/A N/A pars add_many N/A a 0.1 N/A b 1 N/A minimizer N/A N/A lmfit Minimizer residual pars fcn_args N/A x y N/A out N/A N/A minimizer leastsq N/A N/A N/A out nfev 5 N/A N/A N/A out nfev 500 N/A N/A N/A out chisqr 3.0 N/A N/A N/A out nvarys 2 N/A N/A assert_paramval N/A N/A out params N/A a 0.1 tol 0.1 N/A N/A assert_paramval N/A N/A out params N/A b -2.0 tol 0.1 N/A ci N/A N/A lmfit conf_interval minimizer out N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 0 N/A 0 0.997 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 0 N/A 1 -2.022 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 2 N/A 0 0.674 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 2 N/A 1 -1.997 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 5 N/A 0 0.95 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 5 N/A 1 -1.96 rtol 0.01 N/A test_confidence2 N/A N/A N/A N/A N/A x N/A N/A np linspace 0.3 10 100 N/A N/A N/A N/A np random seed 0 N/A y N/A N/A N/A 1 N/A 0.1 x 2 N/A 0.1 N/A N/A N/A np random randn N/A x size N/A pars N/A N/A lmfit Parameters N/A N/A N/A pars add_many N/A a 0.1 N/A b 1 N/A c 1.0 N/A N/A N/A pars N/A a max 0.25 N/A N/A N/A pars N/A a min 0.0 N/A N/A N/A pars N/A a value 0.2 N/A N/A N/A pars N/A c vary False N/A minimizer N/A N/A lmfit Minimizer residual2 pars fcn_args N/A x y N/A out N/A N/A minimizer minimize method nelder N/A out N/A N/A minimizer minimize method leastsq params N/A out params N/A N/A N/A out nfev 5 N/A N/A N/A out nfev 500 N/A N/A N/A out chisqr 3.0 N/A N/A N/A out nvarys 2 N/A N/A assert_paramval N/A N/A out params N/A a 0.1 tol 0.1 N/A N/A assert_paramval N/A N/A out params N/A b -2.0 tol 0.1 N/A ci N/A N/A lmfit conf_interval minimizer out N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 0 N/A 0 0.997 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 0 N/A 1 -2.022 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 2 N/A 0 0.674 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 2 N/A 1 -1.997 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 5 N/A 0 0.95 rtol 0.01 N/A N/A assert_allclose N/A N/A N/A ci N/A b N/A 5 N/A 1 -1.96 rtol 0.01 N/A N/A N/A N/A lmfit printfuncs report_ci ci N/A N/A N/A __name__ __main__ N/A N/A N/A test_confidence1 N/A N/A test_confidence2