Description Usage Arguments Value Examples
View source: R/numericDistances.R
Longest common substring distance for two numeric vectors, e.g., bit vectors.
first vector (numeric)
second vector (numeric)
numeric distance value
, scaled to values between 0 and 1
1 2 3 4 5 6
#e.g., used for distance between bit strings x <- c(0,1,0,1,0) y <- c(1,1,0,0,1) distanceNumericLCStr(x,y) p <- replicate(10,sample(c(0,1),5,replace=TRUE),simplify=FALSE) distanceMatrix(p,distanceNumericLCStr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.