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.

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

See also:<br />

splprep, splrep, splint, sproot, splev - evaluation, roots, integral UnivariateSpline, BivariateSpline - an<br />

alternative wrapping<br />

of the FITPACK functions<br />

Notes: Based on algorithms from:<br />

3.5.4 2-D Splines<br />

See Also:<br />

Dierckx P.<br />

[An algorithm for surface fitting with spline functions] Ima J. Numer. Anal. 1 (1981) 267-283.<br />

Dierckx P.<br />

[An algorithm for surface fitting with spline functions] report tw50, Dept. Computer Science,K.U.Leuven,<br />

1980.<br />

Dierckx P.<br />

[Curve and surface fitting with splines, Monographs on] Numerical Analysis, Oxford University<br />

Press, 1993.<br />

<strong>scipy</strong>.ndimage.map_coordinates<br />

BivariateSpline Bivariate spline s(x,y) of degrees kx and ky on the rectangle [xb,xe] x [yb,<br />

ye] calculated from a given set of data points (x,y,z).<br />

SmoothBivariateSpline(x, Smooth bivariate spline approximation.<br />

y, z, None, None[, ...])<br />

LSQBivariateSpline(x, y, z, Weighted least-squares spline approximation.<br />

tx, ty, None, None)<br />

class BivariateSpline()<br />

Bivariate spline s(x,y) of degrees kx and ky on the rectangle [xb,xe] x [yb, ye] calculated from a given set of<br />

data points (x,y,z).<br />

See also:<br />

bisplrep, bisplev - an older wrapping of FITPACK UnivariateSpline - a similar class for univariate spline interpolation<br />

SmoothUnivariateSpline - to create a BivariateSpline through the<br />

given points<br />

LSQUnivariateSpline - to create a BivariateSpline using weighted<br />

least-squares fitting<br />

Methods<br />

ev(xi, yi) Evaluate spline at points (x[i], y[i]), i=0,...,len(x)-1<br />

get_coeffs() Return spline coefficients.<br />

get_knots() Return a tuple (tx,ty) where tx,ty contain knots positions of the spline with respect to x-,<br />

y-variable, respectively.<br />

get_residual() Return weighted sum of squared residuals of the spline<br />

integral(xa, xb,<br />

ya, yb)<br />

Evaluate the integral of the spline over area [xa,xb] x [ya,yb].<br />

ev(xi, yi)<br />

Evaluate spline at points (x[i], y[i]), i=0,...,len(x)-1<br />

3.5. Interpolation (<strong>scipy</strong>.interpolate) 205

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

Saved successfully!

Ooh no, something went wrong!