minhash_v2: Function to create a matrix of minhashed signatures

Description Usage Arguments Value Examples

View source: R/minhash_v2.R

Description

Function to create a matrix of minhashed signatures

Usage

1
2
3
4
5
minhash_v2(
  shingled_records,
  p,
  do_one_hash_and_record = do_one_hash_and_record
)

Arguments

shingled_records

Shingled records

p

Number of permutations to be applied to the hash function

do_one_hash_and_record

Combination of one hash and one record

Value

Computes an integer-valued matrix of minhash signatures with one row per permutation and one column per record

Examples

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

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

Related to minhash_v2 in tlsh...