Learn R Programming

PPRL (version 0.3.8)

CreateDoubleBalancedBF: Double Balanced Bloomfilter Encoding

Description

Double balanced Bloom Filter are created by first creating balanced Bloom Filters, see CreateBalancedBF, negating the whole data set and shuffling each Bloom Filter.

Usage

CreateDoubleBalancedBF(ID, data, password)

Value

A data.frame containing IDs and the corresponding double balanced bit vector.

Arguments

ID

A character vector containing the ID. The ID vector must have the same size as the number of rows of data.

data

CLKs as created by CreateCLK or CreateBF.

password

A string to encode the routines.

References

Schnell, R. (2017): Recent Developments in Bloom Filter-based Methods for Privacy-preserving Record Linkage. Curtin Institute for Computation, Curtin University, Perth, 12.9.2017.

See Also

CreateBalancedBF, CreateBF, CreateCLK, StandardizeString

Examples

Run this code
# Load test data
testFile <- file.path(path.package("PPRL"), "extdata/testdata.csv")
testData <-read.csv(testFile, head = FALSE, sep = "\t",
  colClasses = "character")

# Create bit vectors e.g. with CreateBF
testData <- CreateBF(ID = testData$V1,
  testData$V7, k = 20, padding = 1, q = 2,
  l = 1000, password = "(H]$6Uh*-Z204q")

# Create Double Balanced Bloom Filters
DBB <- CreateDoubleBalancedBF(ID = testData$ID, data = testData$CLKs,
  password = "hdayfkgh")

Run the code above in your browser using DataLab