slopezi_get: Get drift based on slopes

Description Usage Arguments Value Examples

View source: R/shepard.R

Description

The drift is needed for interpolation by angular distance weighting extended by slopes. Interpolation weights are based on the nearest neighbors (4 to 10 neighbors, depending on the distance).

Usage

1
slopezi_get(data, xinp, rad = getR, vparam = 0.1)

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

vparam

Scalar, parameter for the slopes

Value

The weights for the ADW interpolation considering slopes and 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))
slopezi_get(mydata, c(4,4,4,4))

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