jiebaR (version 0.10.99)

simhash_dist: 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

Run this code
# NOT RUN {
simhash_dist("1","1")
simhash_dist("1","2")
tobin("1")
tobin("2")
simhash_dist_mat(c("1","12","123"),c("2","1"))
# }

Run the code above in your browser using DataLab