dist.fun.bubble {som.nn} | R Documentation |
The function is used as distance-dependent weight w
for k-NN voting.
dist.fun.bubble(x, sigma = 1.1)
x |
Distance or |
sigma |
Maximum distance to be considered. Default is 1.1. |
The function returns 1.0 for 0 < x \le \sigma
and 0.0 for x > \sigma
.
Distance-dependent weight.