projectionNumber: Compute the projection number of two partitions

View source: R/aab-helper.R

projectionNumberR Documentation

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(s)

Fabian Ball fabian.ball@kit.edu

See Also

dongensMetric

Examples

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


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