Compares two cluster sequences after best label alignment.

SRD(c1, c2, noise = 0)

Arguments

c1, c2

The cluster sequence 1 and 2.

noise

The noise cluster name. Default is 0.

Value

The mean value of hamming distance after label alignment.

Examples

c1 <- c(-1, 0, 1, 1, -1, 3, 3, 5, 5, 5)   # `-1` is noise
c2 <- c(-1, 4, 4, 4, -1, 2, 2, 2, 2, 2)   # `-1` is noise
SRD(c1, c2, noise=-1)
#> [1] 0.3