15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Methods<br />

SciPy Reference Guide, Release 0.8.dev<br />

output – an instance if the Output class containing all of the returned<br />

data from an invocation of ODR.run() or ODR.restart()<br />

restart([iter]) Restarts the run with iter more iterations.<br />

run() Run the fitting routine with all of the information given.<br />

set_iprint([init, so_init, iter, so_iter, ...]) Set the iprint parameter for the printing of computation reports.<br />

set_job([fit_type, deriv, var_calc, ...]) Sets the “job” parameter is a hopefully comprehensible way.<br />

restart(iter=None)<br />

Restarts the run with iter more iterations.<br />

Parameters<br />

iter : int, optional<br />

ODRPACK’s default for the number of new iterations is 10.<br />

Returns<br />

output : Output instance<br />

This object is also assigned to the attribute .output .<br />

run()<br />

Run the fitting routine with all of the information given.<br />

Returns<br />

output : Output instance<br />

This object is also assigned to the attribute .output .<br />

set_iprint(init=None, so_init=None, iter=None, so_iter=None, iter_step=None, final=None, so_final=None)<br />

Set the iprint parameter for the printing of computation reports.<br />

If any of the arguments are specified here, then they are set in the iprint member. If iprint is not set<br />

manually or with this method, then ODRPACK defaults to no printing. If no filename is specified with the<br />

member rptfile, then ODRPACK prints to stdout. One can tell ODRPACK to print to stdout in addition<br />

to the specified filename by setting the so_* arguments to this function, but one cannot specify to print to<br />

stdout but not a file since one can do that by not specifying a rptfile filename.<br />

There are three reports: initialization, iteration, and final reports. They are represented by the arguments<br />

init, iter, and final respectively. The permissible values are 0, 1, and 2 representing “no report”, “short<br />

report”, and “long report” respectively.<br />

The argument iter_step (0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!