idw_matrix: Inverse distance weighted interpolation

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Inverse distance weighted interpolation

Usage

1
idw_matrix(vals, dist, pow = 2)

Arguments

vals

A location-by-value matrix

dist

Distance to each value

pow

Power to use for distance

Details

Interpolation is done assuming locations are in the rows of vals. Thus, if vals is an n by m matrix, each of the m output values will be the inverse distance weighted average for the n sites

Value

The inverse distance weighted average of vals


mtalluto/NSmetabolism documentation built on May 3, 2021, 7:51 p.m.