commonality: Compute qq from tt

View source: R/commonality.R

commonalityR Documentation

Compute qq from tt

Description

qq is the commonality function as a set function from the subsets of the frame to [0,1]. To evaluate it, input a set encoded in binary vector, so the commonality number at that set can be returned.

Usage

commonality(tt, m, method = NULL)

Arguments

tt

Bolean description matrix

m

Mass assignment vector of probabilities

method

= NULL: Use Fast Zeta Transform ("fzt") or Efficient Zeta Transform ("ezt") or Efficient Zeta Transform on a meet-closed subset ("ezt-m")

Value

f Commonality function

Author(s)

Peiyuan Zhu

Examples

x <- bca(tt = matrix(c(0,1,1,1,1,0,1,1,1),nrow = 3, byrow = TRUE),
m = c(0.2,0.5, 0.3), cnames = c("a", "b", "c"), varnames = "x", idvar = 1)
qq <- commonality(x$tt,x$spec[,2],  method = "ezt")
qq
qq1 <- commonality(x$tt,x$spec[,2])
qq1

RAPLER/dst-1 documentation built on June 2, 2025, 9:22 a.m.