View source: R/pair_counting.R
computePairCoefficients | R Documentation |
N_{11}
, N_{10}
,
N_{01}
, N_{00}
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.
computePairCoefficients(p, q)
p |
The partition |
q |
The partition |
Fabian Ball fabian.ball@kit.edu
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.