naginterfaces.library.interp.dim5_​scat_​shep_​eval

naginterfaces.library.interp.dim5_scat_shep_eval(x, f, iq, rq, xe)[source]

dim5_scat_shep_eval evaluates the five-dimensional interpolating function generated by dim5_scat_shep() and its first partial derivatives.

For full information please refer to the NAG Library document for e01tn

https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/e01/e01tnf.html

Parameters
xfloat, array-like, shape

Must be the same array supplied as argument in the preceding call to dim5_scat_shep(). It must remain unchanged between calls.

ffloat, array-like, shape

Must be the same array supplied as argument in the preceding call to dim5_scat_shep(). It must remain unchanged between calls.

iqint, array-like, shape

Must be the same array returned as argument in the preceding call to dim5_scat_shep(). It must remain unchanged between calls.

rqfloat, array-like, shape

Must be the same array returned as argument in the preceding call to dim5_scat_shep(). It must remain unchanged between calls.

xefloat, array-like, shape

must be set to the evaluation point , for .

Returns
qfloat, ndarray, shape

contains the value of the interpolant, at , for . If any of these evaluation points lie outside the region of definition of the interpolant the corresponding entries in are set to an extrapolated approximation, and dim5_scat_shep_eval returns with = 3.

qxfloat, ndarray, shape

contains the value of the partial derivatives with respect to of the interpolant at , for , and for each of the five partial derivatives . If any of these evaluation points lie outside the region of definition of the interpolant, the corresponding entries in are set to extrapolated approximations to the partial derivatives, and dim5_scat_shep_eval returns with = 3.

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, values in appear to be invalid. Check that has not been corrupted between calls to dim5_scat_shep() and dim5_scat_shep_eval.

(errno )

On entry, values in appear to be invalid. Check that has not been corrupted between calls to dim5_scat_shep() and dim5_scat_shep_eval.

Warns
NagAlgorithmicWarning
(errno )

On entry, at least one evaluation point lies outside the region of definition of the interpolant. At such points the corresponding values in and contain extrapolated approximations. Points should be evaluated one by one to identify extrapolated values.

Notes

dim5_scat_shep_eval takes as input the interpolant , of a set of scattered data points , for , as computed by dim5_scat_shep(), and evaluates the interpolant and its first partial derivatives at the set of points , for .

dim5_scat_shep_eval must only be called after a call to dim5_scat_shep().

dim5_scat_shep_eval is derived from the new implementation of QS3GRD described by Renka (1988). It uses the modification for five-dimensional interpolation described by Berry and Minser (1999).

References

Berry, M W, Minser, K S, 1999, Algorithm 798: high-dimensional interpolation using the modified Shepard method, ACM Trans. Math. Software (25), 353–366

Renka, R J, 1988, Algorithm 661: QSHEP3D: Quadratic Shepard method for trivariate interpolation of scattered data, ACM Trans. Math. Software (14), 151–152