Learn R Programming

dst (version 1.8.0)

bcaTrunc: Truncation of a basic chance assignment mass function

Description

When working with large frames of discernment, the bca resulting of repeated application of Dempster's Rule of Combination can become big. One way to handle this situation could be to group subsets whose mass is less than a small treshold value. The function bcaTrunc serves this purpose to reduce a large bca to its main elements.

Usage

bcaTrunc(x, seuil, use_ssnames = FALSE)

Value

tr_x The bca object truncated.

Arguments

x

A bca to truncate.

seuil

A treshold value

use_ssnames

Put TRUE to use ssnames parameteer instead of description matrix. Default = FALSE.

Author

Claude Boivin

Examples

Run this code
x <- bca(tt = matrix(c(0,1,0,0, 
0,0,1,1,
1,1,0,0,
1,0,1,0,
0,1,1,0,
1,1,1,1),ncol=4, byrow = TRUE), m = c(0.2, 0.5, 0.06, 0.04, 0.03, 0.17),
cnames = c("a", "b", "c", "d"))
bcaPrint(x)
tr_x <- bcaTrunc(x, seuil = 0.1)
bcaPrint(tr_x)

Run the code above in your browser using DataLab