Skip to content

Kernel functions for distance weighting

Usage

weight_func(values = values_weight_func)

values_weight_func

Format

An object of class character of length 10.

Arguments

values

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

Details

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

Examples

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