simhash_dist: Compute Hamming distance of Simhash value

Description Usage Arguments Value Examples

View source: R/ham_dist.R

Description

Compute Hamming distance of Simhash value

Usage

1
2
3

Arguments

x

a character vector of simhash value

y

a character vector of simhash value

Value

a character vector

Examples

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

Example output

Loading required package: jiebaRD
[1] 0
[1] 2
[1] "0000000000000000000000000000000000000000000000000000000000000001"
[1] "0000000000000000000000000000000000000000000000000000000000000010"
     [,1] [,2]
[1,]    2    0
[2,]    3    3
[3,]    5    5

jiebaR documentation built on Dec. 16, 2019, 1:19 a.m.