Distance weight methods

dist_normalize(D, d_max, imp_function, function_d_max = 0.01)

Arguments

D

numeric matrix, distance or time values

d_max

numeric, threshold for max distance

imp_function

character, type of distance weights method

function_d_max

numeric, condition for the result of the function(d_max) used to calculate beta (default = 0.01, is considered optimal for the Gaussian function)

Value

matrix, normalized distance or time values

Examples

dist_normalize(matrix(10), 10, "gaussian")
#>      [,1]
#> [1,] 0.01