cosangmx: Get cosinus of pairwise angles between data points and...

Description Usage Arguments Value Examples

View source: R/shepard.R

Description

This function is basically a helper function for mvInterpolation::ti_get and not intended for direct use.

Usage

1
cosangmx(data, xinp, distance = NULL)

Arguments

data

A matrix of data points

xinp

Coordinates of the fixed point of the angles; usually the point where interpolation has to be computed

distance

Distances between xinp and data can be given as an optional argument, if they have been coputed before, such that a new computation is not necessary

Value

The cosini of the pairwise angles between two data points with fixed point xinp

Examples

1
2
coords <- matrix(runif(10*4)*10, ncol=4)
cosangmx(coords,rep(4,4))

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