idw_river: Perform inverse distance weighting with a correction for...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This function works on a vector of k output sites, where the length of each input list and the input vector Q must be k. For each input site, the corresponding input lists contain vectors of neighbor sites; so for site k with discharge Qk, vals[k] is a vector for the n neighbors of site k.

Usage

1
idw_river(vals, dist, nbQ, Q)

Arguments

vals

input values of variable to interpolate

dist

distance from focal point to vals; negative for downstream sites

nbQ

discharge of measured sites

Q

discharge of focal site

Value

interpolated value of vals


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