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 />

Notes<br />

Returns :<br />

——- :<br />

d : array<br />

If the interpolator’s values are R-dimensional then the returned array will be the<br />

number of derivatives by N by R. If x is a scalar, the middle dimension will be<br />

dropped; if the yi are scalars then the last dimension will be dropped.<br />

Construction of the interpolating polynomial is a relatively expensive process. If you want to evaluate it repeatedly<br />

consider using the class KroghInterpolator (which is what this function uses).<br />

piecewise_polynomial_interpolate(xi, yi, x, orders=None, der=0)<br />

Convenience function for piecewise polynomial interpolation<br />

Notes<br />

Parameters<br />

xi : array-like of length N<br />

a sorted list of x-coordinates<br />

yi : list of lists of length N<br />

yi[i] is the list of derivatives known at xi[i]<br />

x : scalar or array-like of length M<br />

orders : list of integers, or integer<br />

a list of polynomial orders, or a single universal order<br />

der : integer<br />

which single derivative to extract<br />

Returns<br />

y : scalar or array-like of length R or length M or M by R<br />

If orders is None, or orders[i] is None, then the degree of the polynomial segment is exactly the degree required<br />

to match all i available derivatives at both endpoints. If orders[i] is not None, then some derivatives will be<br />

ignored. The code will try to use an equal number of derivatives from each end; if the total number of derivatives<br />

needed is odd, it will prefer the rightmost endpoint. If not enough derivatives are available, an exception is raised.<br />

Construction of these piecewise polynomials can be an expensive process; if you repeatedly evaluate the same<br />

polynomial, consider using the class PiecewisePolynomial (which is what this function does).<br />

3.5.2 Multivariate interpolation<br />

interp2d(x, y, z[, kind, Interpolate over a 2D grid.<br />

copy, ...])<br />

Rbf(*args) A class for radial basis function approximation/interpolation of n-dimensional<br />

scattered data.<br />

class interp2d(x, y, z, kind=’linear’, copy=True, bounds_error=False, fill_value=nan)<br />

Interpolate over a 2D grid.<br />

Parameters<br />

x, y : 1D arrays<br />

192 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!