hamming.distance(vwr)
hamming.distance()所属R语言包:vwr
Compute Hamming distances
计算海明距离
译者:生物统计家园网 机器人LoveR
描述----------Description----------
用法----------Usage----------
hamming.distance(source, targets)
参数----------Arguments----------
参数:source
A character string to compute the Hamming distance from.
一个字符串来计算的海明距离。
参数:targets
Words to which the Hamming distance must be computed. Must be of type character, or convertible to type character with as.character. Targets will be converted internally with tpreprocess, but preprocessing can also be done before passing targets to the function.
词语,必须计算的汉明距离。必须是类型character,或转换为键入characteras.character。目标将在内部转换tpreprocess,但也可以做预处理,再通过目标的功能。
值----------Value----------
An integer vector containing Hamming distances, with names corresponding to targets. Since the Hamming distances is only defined between words of the same length, the output of hamming.distance is only guaranteed to have the same length as targets if all targets have the same length as source.
一个整数向量的海明距离,相应的目标的名字。由于只定义了相同长度的字之间的汉明距离,输出hamming.distance只保证具有相同的长度为targets如果所有targetssource具有相同的长度。
(作者)----------Author(s)----------
Emmanuel Keuleers
参见----------See Also----------
hamming.neighbors, coltheart.N
hamming.neighbors,coltheart.N
实例----------Examples----------
data(english.words)
hamming.distance('electroencephalogram',english.words)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|