di_get: Get weights for interpolation by inverse distance weighting

Description Usage Arguments Value Examples

View source: R/shepard.R

Description

Interpolation weights for inverse distance weighting.

Usage

1
di_get(data, xinp, p = 2)

Arguments

data

A matrix of the points for which the function is known

xinp

Coordinates, where interpolation has to be computed

p

additional parameter as in the Shepard paper

Value

The weights for the IDW interpolation

Examples

1
2
3
mydata <- matrix(runif(10*4)*10, ncol=4)
mydata <- cbind(mydata,abs(apply(mydata,1,sum)-3),abs(apply(mydata,1,prod)-4))
di_get(mydata, c(4,4,4,4))

amaendle/mvInterpolation documentation built on May 16, 2019, 6:56 p.m.