Skip to contents

The uniqueness is calculated as the average of the hamming distance of the CRPs of two devices, for every pair of devices. The number of pairs of devices is calculated with the following formula, where \(D\) is the number of devices. $$N = \frac{D(D-1)}{2}$$

Usage

uniqueness(crps)

inter_hd(crps)

Arguments

crps

A logical or numeric matrix

Value

The uniqueness of the CRP table

Examples

mat <- rbits(c(10, 10))
uniqueness(mat)
#>  [1] 0.8 0.7 0.6 0.5 0.7 0.2 0.5 0.5 0.3 0.7 0.4 0.5 0.5 0.4 0.3 0.5 0.5 0.5 0.6
#> [20] 0.6 0.3 0.6 0.4 0.2 0.7 0.5 0.2 0.5 0.5 0.5 0.6 0.5 0.4 0.2 0.6 0.5 0.6 0.4
#> [39] 0.2 0.5 0.3 0.7 0.4 0.4 0.4