fnr_fun: Calculates FNR when ground truth is available

Description Usage Arguments Value Examples

View source: R/error_rates.R

Description

Calculates FNR when ground truth is available

Usage

1
fnr_fun(z, id)

Arguments

z

Vector of cluster assignments

id

Vector of true cluster assignments (ground truth)

Value

FNR

Examples

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

microclustr documentation built on Jan. 13, 2021, 8:58 p.m.