triCube: Tukey's Tricube weight function

Description Usage Arguments Details Value Examples

View source: R/pfGridding.R

Description

From the EGRET package http://usgs-r.github.io/EGRET/ Robert Hirsch and Laura De Cicco

Usage

1
triCube(d, h)

Arguments

d

numeric vector of distances from the point of estimation to the given sample value

h

numeric value, the half-window width, measured in the same units as d

Details

Computes the tricube weight function on a vector of distance values (d), based on a half-window width of h, and returns a vector of weights that range from zero to 1.

Value

w numeric vector of weights, all 0<=w<=1

Examples

1
2
3
h<-10
 d<-c(-11,-10,-5,-1,-0.01,0,5,9.9,10,20)
 triCube(d,h)

oblarquez/paleofire documentation built on Dec. 29, 2021, 11 a.m.