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.
Usage
triCube(d, h)
Value
w numeric vector of weights, all 0<=w<=1
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
See Cleveland, W. S. (1979). Robust locally weighted regression and smoothing scatterplots, JASA, 74, 829-836