Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

distanceNumericLevenshtein

Levenshtein Distance for Numeric Vectors


Description

Levenshtein distance for two numeric vectors, e.g., bit vectors.

Usage

distanceNumericLevenshtein(x, y)

Arguments

x

first vector (numeric)

y

second vector (numeric)

Value

numeric distance value

d(x,y)

, scaled to values between 0 and 1

Examples

#e.g., used for distance between bit strings
x <- c(0,1,0,1,0)
y <- c(1,1,0,0,1)
distanceNumericLevenshtein(x,y)
p <- replicate(10,sample(c(0,1),5,replace=TRUE),simplify=FALSE)
distanceMatrix(p,distanceNumericLevenshtein)

CEGO

Combinatorial Efficient Global Optimization

v2.4.0
GPL (>= 3)
Authors
Martin Zaefferer <mzaefferer@gmail.com>
Initial release
2019-12-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.