simhash_dist {jiebaR}R Documentation

Compute Hamming distance of Simhash value

Description

Compute Hamming distance of Simhash value

Usage

simhash_dist(x, y)

simhash_dist_mat(x, y)

Arguments

x

a character vector of simhash value

y

a character vector of simhash value

Value

a character vector

Examples

simhash_dist("1","1")
simhash_dist("1","2")
tobin("1")
tobin("2")
simhash_dist_mat(c("1","12","123"),c("2","1"))

[Package jiebaR version 0.11 Index]