hamming.distance.rd
来自「支持向量机完整版(SVM)可以用来进行设别训练」· RD 代码 · 共 25 行
RD
25 行
\name{hamming.distance}\alias{hamming.distance}\title{Hamming Distances of Vectors}\usage{ hamming.distance(x, y)}\arguments{\item{x}{a vector or matrix.}\item{y}{an optional vector.}}\description{ If both \code{x} and\code{y} are vectors, \code{hamming.distance} returns the Hammingdistance (number of different bytes) between this two vectors. If\code{x} is a matrix, the Hamming distances between the rows of \code{x}are computed and \code{y} is ignored.}\examples{x <- c(1, 0, 0)y <- c(1, 0, 1)hamming.distance(x, y)z <- rbind(x,y)rownames(z) <- c("Fred", "Tom")hamming.distance(z)}\keyword{multivariate}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?