dist.fun.bubble: Bubble distance functions for topological k-NN classifier

Description Usage Arguments Details Value

View source: R/som.nn.distance.functions.R

Description

The function is used as distance-dependent weight w for k-NN voting.

Usage

1

Arguments

x

Distance or numeric vector or matrix of distances.

sigma

Maximum distance to be considered. Default is 1.1.

Details

The function returns 1.0 for 0 < x ≤ σ and 0.0 for x > σ.

Value

Distance-dependent weight.


som.nn documentation built on May 2, 2019, 8:26 a.m.