nzdsr | R Documentation |
It may occur that the result of the combination of two basic chance assignments with Dempster's Rule of combination contains a non-zero mass allocated to the empty set. The function nzdsr
normalizes the result of function dsrwon
by dividing the mass value of the non-empty subsets by 1 minus the mass of the empty set.
nzdsr(x)
x |
A basic chance assignment, i.e. a object of class bcaspec. |
z The normalized basic chance assignment.
Claude Boivin
Shafer, G., (1976). A Mathematical Theory of Evidence. Princeton University Press, Princeton, New Jersey, pp. 57-61: Dempster's rule of combination.
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", varnb = 1)
x2 <- bca(tt = matrix(c(0,1,1,1),nrow = 2, byrow = TRUE),
m = c(0.5,0.5), cnames = c("yes", "no"),
varnames = "x", varnb = 1)
print("combination of x1 and x2")
x1x2 <- dsrwon(x1,x2, varname = "x")
nzdsr(x1x2)
print("normalization of a bca definition.")
y2 <- bca(f = matrix(c(0,0,0,1,0,0,1,1,1),nrow = 3,
byrow = TRUE), m = c(0.2,0.5,0.3),
cnames = c("a", "b", "c"), varnb = 1)
nzdsr(y2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.