intpol.irregular: Interpolation on an irregular grid

Description Usage Arguments Value Author(s)

View source: R/intpol.R

Description

Function to perform interpolation on an irregular grid.

Usage

1
2
intpol.irregular(x,x.data,y.data,method=c("neighbor","invdist"),
                 scales.x=NA,fact=1)

Arguments

x

vector of values of independent variable at which to interpolate; xout can also be a matrix, interpolation is then for each row

x.data

matrix of independent independent variables; each row of x.data belongs to one input specification (x.data can be a vector if there is only one input dimension)

y.data

vector of values of the dependent variable; one value for each row of x.data

method

"neighbor" does nearest neighbor interpolation (piecewise constant function of value at nearest data point); "invdist" weights the provided dependent values according to the inverse of the distance to xout squared

scales.x

values of x and of x.data are scaled by these scales before interpolation; default is all scales equal to 1

fact

scaling factor

Value

Returns interpolated values.

Author(s)

Peter Reichert <peter.reichert@eawag.ch>


baccione-eawag/EawagSchoolTools documentation built on Dec. 19, 2021, 6:38 a.m.