Kernel functions for distance weighting

weight_func(values = values_weight_func)

values_weight_func

Arguments

values

A character string of possible values. See values_weight_func in examples below.

Format

An object of class character of length 10.

Details

This parameter is used in parsnip:::nearest_neighbors().

Examples

values_weight_func
#> [1] "rectangular" "triangular" "epanechnikov" "biweight" "triweight" #> [6] "cos" "inv" "gaussian" "rank" "optimal"
weight_func()
#> Distance Weighting Function (qualitative) #> 10 possible value include: #> 'rectangular', 'triangular', 'epanechnikov', 'biweight', 'triweight', 'cos', ...