Calculate Hamming distance

dist_hamming(X, Y = NULL, embedded = TRUE)

Arguments

X

A matrix (of coordinates)

Y

A matrix (of coordinates)

embedded

Do X and/or Y represent surrogate dimensions of an embedded time series?

Value

A hamming-distance matrix of X, or X and Y. Useful for ordered and unordered categorical data.

See also

Other Distance matrix operations (recurrence plot): bandReplace(), di2bi(), di2ch(), di2we(), rp_lineDist(), rp_nzdiags(), rp_plot(), rp_size(), rp()

Author

Fred Hasselman