Learn R Programming

microclustr (version 0.1.0)

fnr_fun: Calculates FNR when ground truth is available

Description

Calculates FNR when ground truth is available

Usage

fnr_fun(z, id)

Arguments

z

Vector of cluster assignments

id

Vector of true cluster assignments (ground truth)

Value

FNR

Examples

Run this code
# NOT RUN {
truePartition <- c(50,50,50,50)
maxPartitionSize<- length(truePartition)
uniqueNumberRecords <- sum(truePartition)
id <- rep(1:uniqueNumberRecords, times=rep(1:maxPartitionSize, times=truePartition))
fnr_fun(z = truePartition, id)
# }

Run the code above in your browser using DataLab