superBca | R Documentation |
Fast combination of multiple simple support functions
superBca(x, y, a, y0 = 0, flip = TRUE, tree_type = "single")
x |
A binary matrix of simple support functions define on a same frame of discernment (Fod). |
y |
A column matrix |
a |
The mass value allotted to each simple support function. All support functions have the same mass. |
y0 |
A value used to check which rows of the matrix |
flip |
Parameter used when some rows of the table |
This function handles the case of combining several simple support functions defined on a very large frame of discernment (Fod). The simple support functions are arranged row by row in a binary array x
. The number of rows of the array is equal to the number of support functions to be combined.The support functions can be defined as is or by their complement when it's faster to code. A column matrix y
of TRUE/FALSE values is used to identify the rows of the array that need to be inverted.
z An object of class bcaspec
called a bca for "basic chance assignment"
Peiyuan Zhu
x1 <- bca(tt= matrix(c(1,0,1,1),nrow = 2, byrow = TRUE),
m = c(0.9,0.1), cnames = c("yes", "no"),
varnames = "x", idvar = 1)
x2 <- bca(tt = matrix(c(0,1,1,1),nrow = 2, byrow = TRUE),
m = c(0.9,0.1), cnames = c("yes", "no"),
varnames = "x", idvar = 1)
x <- rbind(x1$tt[1,], x2$tt[1,])
rownames(x) <- nameRows(x)
y <- matrix(c(TRUE, TRUE), ncol = 1 )
a <- 0.9
z <- superBca(x, y, a, tree_type="single")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.