dist.fun.linear {som.nn} | 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.