mFromQQ: Construct a mass vector from qq function and tt matrix of...

View source: R/mFromQQ.R

mFromQQR Documentation

Construct a mass vector from qq function and tt matrix of focal elements recursively.

Description

Construct a mass vector from qq function and tt matrix of focal elements recursively.

Usage

mFromQQ(
  qq,
  n = NULL,
  cnames = NULL,
  method = NULL,
  sparse = "no",
  tt = NULL,
  use_pb = FALSE,
  tree_type = NULL
)

Arguments

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".

Value

m A corresponding mass vector

Author(s)

Peiyuan Zhu

Examples

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)

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