mFromQQ | R Documentation |
Construct a mass vector from qq function and tt matrix of focal elements recursively.
mFromQQ(
qq,
n = NULL,
cnames = NULL,
method = NULL,
sparse = "no",
tt = NULL,
use_pb = FALSE,
tree_type = NULL
)
qq |
Commonality function |
n |
Frame dimension |
cnames |
A character vector containing the names of the elements of the frame of discernment |
method |
= NULL: Use Fast Mobius Transform ("fmt") or Efficient Mobius Transform ("emt") or Efficient Mobius Transform on a meet-closed subset ("emt-m") |
tt |
A binary matrix. |
use_pb |
Whether to print progress bar. |
sprase |
= c("yes","no") whether to use sparse matrix. Default = "no". |
m A corresponding mass vector
Peiyuan Zhu
tt<- t(matrix(c(1,0,1,1),ncol = 2))
m<- c(.9,.1)
cnames <- c("yes","no")
x<- bca(tt, m, cnames=cnames, method = "fzt")
mFromQQ(x$qq, 2, method = "fmt", cnames = cnames)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.