View source: R/som.nn.distance.functions.R
dist.fun.tricubic | R Documentation |
The tricubic function is used as distance-dependent weight w
for
k-NN voting.
dist.fun.tricubic(x, sigma = 1)
x |
Distance or |
sigma |
Maximum distance to be considered. |
The function returns 1.0 for x = 0
, 0.0 for x \ge \sigma
and
w(x) = (1 - x^3 / \sigma^3)^3
for 0 < x < \sigma
.
Distance-dependent weight.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.