dist.fun.tricubic: Tricubic distance functions for topological k-NN classifier

Description Usage Arguments Details Value

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

Description

The tricubic 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.

Details

The function returns 1.0 for x = 0, 0.0 for x ≥ σ and

w(x) = (1 - x^3 / σ^3)^3

for 0 < x < σ.

Value

Distance-dependent weight.


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