Documentation for jbiu/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

math/

biharmonic_interp.pro


top source biharmonic_interp

Math

result = biharmonic_interp(z, x, y, xout, yout)

Performs biharmonic interpolation for a function defined on a 2D grid.

Biharmonic interplation of Z(X,Y) is equivalent to bilinear interpolation on the grid Z( log(X), log(Y) ), which is in fact how it is calculated.

Return value

A vector containing the value of the function biharmonically interpreted at each Xout,Yout pair. The output will have the same number of elements as Xout and Yout.

Parameters

z in

2D array containing the values of the function defined at each X,Y grid point. The first dimension of Z must have the same length as X and the second dimension must have the same length as Y.

x in

Vector containing the x-locations of the grid points at which the function is defined.

y in

Vector containing the y-locations of the grid points at which the function is defined.

xout in

A vector of x-locations at which the function is to be interpolated.

yout in

A vector of y-locations at which the function is to be interpolated.

Examples

IDL> xgrid = [1.,2.] IDL> ygrid = [2.,5.] IDL> zvals = [ [10.,2.], [25.,15.] ] IDL> PRINT, BIHARMONIC_INTERP(zvals, xgrid, ygrid, [1.3], [3.]) 13.2745

Author information

History:

Written by: Jeremy Bailin 11 June 2008 Public release in JBIU

File attributes

Modification date: Wed Apr 15 16:07:52 2009
Lines: 91