Learn R Programming

partitionComparison (version 0.2.5)

normalizedLermanIndex: Normalized Lerman Index

Description

Compute the normalized Lerman index $$L(P, Q) / \sqrt{L(P, P)L(Q, Q)}$$ where \(L\) is the Lerman index.

Usage

normalizedLermanIndex(p, q, c = NULL)

# S4 method for Partition,Partition,missing normalizedLermanIndex(p, q, c = NULL)

# S4 method for Partition,Partition,PairCoefficients normalizedLermanIndex(p, q, c = NULL)

Arguments

p

The partition \(P\)

q

The partition \(Q\)

c

PairCoefficients or NULL

Methods (by class)

  • p = Partition,q = Partition,c = missing: Compute given two partitions

  • p = Partition,q = Partition,c = PairCoefficients: Compute given the partitions and pair coefficients

Author

Fabian Ball fabian.ball@kit.edu

References

Lerman1988partitionComparison

Hubert1985partitionComparison

See Also

lermanIndex

Examples

Run this code
isTRUE(all.equal(normalizedLermanIndex(new("Partition", c(0, 0, 0, 1, 1)), 
                                       new("Partition", c(0, 0, 1, 1, 1))), 1/6))

Run the code above in your browser using DataLab