hash_signature: Function to take a signature matrix M composed of b bands and...

Description Usage Arguments Value Examples

View source: R/minhash_v2.R

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

1

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

1
2
3
4
5
6
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)

tlsh documentation built on Nov. 16, 2020, 9:15 a.m.