dist.fun.bubble {som.nn}R Documentation

Bubble distance functions for topological k-NN classifier

Description

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

Usage

dist.fun.bubble(x, sigma = 1.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 \le \sigma and 0.0 for x > \sigma.

Value

  Distance-dependent weight.

[Package som.nn version 1.4.4 Index]