si_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 of the nearest neighbors (4 to 10 neighbors, depending on the distance)

Usage

1
si_get(data, xinp, rad = getR)

Arguments

data

A matrix of the points for which the function is known

xinp

Coordinates, where interpolation has to be computed

rad

Function which gives the initial radius for the observations considered in the interpolation

Value

The weights for the IDW interpolation based on the nearest neighbors

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))
si_get(mydata, c(4,4,4,4))

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