View source: R/som.nn.distance.functions.R
| dist.fun.linear | R Documentation | 
The function is used as distance-dependent weight w for k-NN voting.
dist.fun.linear(x, sigma = 1.1)
| x | Distance or  | 
| sigma | Maximum distance to be considered. Default is 1.1. | 
The function returns 1.0 for x = 0, 0.0 for x \ge \sigma and
1 - x / \sigma
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.