Learn R Programming

tlsh (version 0.1.0)

hash_signature: Function to take a signature matrix M composed of b bands and r rows and return a bucket for each band for each record

Description

Function to take a signature matrix M composed of b bands and r rows and return a bucket for each band for each record

Usage

hash_signature(signature, b)

Arguments

signature

Signature matrix M composed of b bands and r rows

b

Number of bands

Value

Bucket for each band for each record

Examples

Run this code
# NOT RUN {
head(data <- RLdata500[-c(2,4)])
minidata <- data[1:2,]
head(all_the_shingles <- apply(minidata,1,shingles,k=8))
head(minhash.minidata <- minhash_v2(all_the_shingles, p=10))
hash_signature(minhash.minidata, b=2)
hash_signature(minhash.minidata, b=5)
# }

Run the code above in your browser using DataLab