logPossibleConfig {FlexRL}R Documentation

logPossibleConfig

Description

This function helps calculating the number of possible designs for Delta given by nB!/(nB-nLinks)! Needed to compute the log likelihood of the linkage matrix.

Usage

logPossibleConfig(Brecords, sumD)

Arguments

Brecords

Number of records in data source B (the largest).

sumD

Number of linked records (at a specific time point of the algorithm).

Value

The sum of logs of the vector going from nB - nLinks + 1 to nB.

Examples

sumColD = c(0,0,0,0,1,0,0,0,1,0,1,0,1,0,1)
links = base::data.frame(list(idxA=c(5,9,11,12,13), idxB=c(5,9,11,13,15)))
possconfig = logPossibleConfig(length(sumColD),nrow(links))

[Package FlexRL version 0.1.0 Index]