computePairCoefficients: Compute the four coefficients N_{11}, N_{10}, N_{01}, N_{00}

View source: R/pair_counting.R

computePairCoefficientsR Documentation

Compute the four coefficients N_{11}, N_{10}, N_{01}, N_{00}

Description

Given two object partitions P and Q, of same length n, each of them described as a vector of cluster ids, compute the four coefficients (N_{11}, N_{10}, N_{01}, N_{00}) all of the pair comparison measures are based on.

Usage

computePairCoefficients(p, q)

Arguments

p

The partition P

q

The partition Q

Author(s)

Fabian Ball fabian.ball@kit.edu

Examples

pc <- computePairCoefficients(new("Partition", c(0, 0, 0, 1, 1)), 
                              new("Partition", c(0, 0, 1, 1, 1)))
isTRUE(all.equal(N11(pc), 2))
isTRUE(all.equal(N10(pc), 2))
isTRUE(all.equal(N01(pc), 2))
isTRUE(all.equal(N00(pc), 4))


partitionComparison documentation built on Aug. 24, 2023, 1:06 a.m.