calc_weight_default: Calculate weights from the distance.

Description Usage Arguments Value

View source: R/calc_weight_default.R

Description

Calculate weights from the distance.

Usage

1
calc_weight_default(dist, delta = 0.7, gamma = 0.5, kernel = "gaussian", ...)

Arguments

dist

(numeric(1))
A distance.

delta

(numeric(1))
Scaling of the distance (bandwidth of the kernel).

gamma

(numeric(1))
Final scaling of the weight.

kernel

(character(1))
A kernel of "gaussian", "epa", "unif", "tri".

...

Additional arguments

Value

(numeric(1))
A weight corresponding to the distance


SvenKlaassen/AdaptiveDiscreteSmoothing documentation built on Dec. 18, 2021, 3:04 p.m.