Learn R Programming

partitionComparison (version 0.2.5)

projectionNumber: Compute the projection number of two partitions

Description

Given two partitions (p, q) represented as vectors of cluster ids, compute the projection number which is the sum of maximum cluster overlaps for all clusters of \(P\) to any cluster of \(Q\).

Usage

projectionNumber(p, q)

Arguments

p

Partition \(P\)

q

Partition \(Q\)

Author

Fabian Ball fabian.ball@kit.edu

See Also

dongensMetric

Examples

Run this code
isTRUE(all.equal(projectionNumber(c(0, 0, 0, 1, 1), c(0, 0, 1, 1, 1)), 4))

Run the code above in your browser using DataLab