kmsymmsetdiff {kstMatrix}R Documentation

Compute the symmetric set difference between two sets

Description

Compute the symmetric set difference between two sets

Usage

kmsymmsetdiff(x, y)

kmsetdistance(x, y)

Arguments

x

Binary vector representing a set

y

Binary vector representing a set

Value

kmsymmsetdiff: Symmetric set difference between 'x' and 'y'

kmsetdistance: Distance between the sets 'x' and 'y', i.e. the cardinality of the symmetric set difference

Examples

kmsymmsetdiff(c(1,0,0), c(1,1,0))

kmsetdistance(c(1,0,0), c(1,1,0))


[Package kstMatrix version 0.2-0 Index]