15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Methods<br />

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

fjacb – if the response variable is multi-dimensional, then the return<br />

array’s shape is (q, p, n) such that fjacb(x,beta)[l,k,i] = @f_l(X,B)/@B_k evaluated at the i’th<br />

data point. If q == 1, then the return array is only rank-2 and with shape (p, n).<br />

fjacd – as with fjacb, only the return array’s shape is (q, m, n) such that<br />

fjacd(x,beta)[l,j,i] = @f_l(X,B)/@X_j at the i’th data point. If q == 1, then the return array’s<br />

shape is (m, n). If m == 1, the shape is (q, n). If m == q == 1, the shape is (n,).<br />

set_meta(**kwds) Update the metadata dictionary with the keywords and data provided<br />

set_meta(**kwds)<br />

Update the metadata dictionary with the keywords and data provided here.<br />

class ODR(data, model, beta0=None, delta0=None, ifixb=None, ifixx=None, job=None, iprint=None, errfile=None,<br />

rptfile=None, ndigit=None, taufac=None, sstol=None, partol=None, maxit=None, stpb=None,<br />

stpd=None, sclb=None, scld=None, work=None, iwork=None)<br />

The ODR class gathers all information and coordinates the running of the main fitting routine.<br />

Members of instances of the ODR class have the same names as the arguments to the initialization routine.<br />

Parameters<br />

Required: :<br />

data – instance of the Data class<br />

model – instance of the Model class<br />

beta0 – a rank-1 sequence of initial parameter values. Optional if<br />

model provides an “estimate” function to estimate these values.<br />

Optional:<br />

delta0 – a (double-precision) float array to hold the initial values of<br />

the errors in the input variables. Must be same shape as data.x .<br />

ifixb – sequence of integers with the same length as beta0 that determines<br />

which parameters are held fixed. A value of 0 fixes the parameter, a value > 0<br />

makes the parameter free.<br />

ifixx – an array of integers with the same shape as data.x that determines<br />

which input observations are treated as fixed. One can use a sequence of<br />

length m (the dimensionality of the input observations) to fix some dimensions<br />

for all observations. A value of 0 fixes the observation, a value > 0<br />

makes it free.<br />

job – an integer telling ODRPACK what tasks to perform. See p. 31 of the<br />

ODRPACK User’s Guide if you absolutely must set the value here. Use the<br />

method set_job post-initialization for a more readable interface.<br />

iprint – an integer telling ODRPACK what to print. See pp. 33-34 of the<br />

ODRPACK User’s Guide if you absolutely must set the value here. Use the<br />

method set_iprint post-initialization for a more readable interface.<br />

errfile – string with the filename to print ODRPACK errors to. *Do Not Open<br />

This File Yourself!*<br />

3.11. Orthogonal distance regression (<strong>scipy</strong>.odr) 293

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

Saved successfully!

Ooh no, something went wrong!