ti_get: Get weights for interpolation by angular distance weighting...

Description Usage Arguments Value Examples

View source: R/shepard.R

Description

Interpolation weights for angular distance weighting of the nearest neighbors (4 to 10 neighbors, depending on the distance)

Usage

1
ti_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 ADW 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))
ti_get(mydata, c(4,4,4,4))

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