Calculate Hamming distance

mat_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(), createCorridor(), mat_di2bi(), mat_di2ch(), mat_di2we(), rp(), rp_lineDist(), rp_nzdiags(), rp_plot(), rp_size()

Author

Fred Hasselman