nzdsr: Normalization of a basic chance assignment

View source: R/nzdsr.R

nzdsrR Documentation

Normalization of a basic chance assignment

Description

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.

Usage

nzdsr(x)

Arguments

x

A basic chance assignment, i.e. a object of class bcaspec.

Value

z The normalized basic chance assignment.

Author(s)

Claude Boivin

References

Shafer, G., (1976). A Mathematical Theory of Evidence. Princeton University Press, Princeton, New Jersey, pp. 57-61: Dempster's rule of combination.

Examples

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)  

dst documentation built on Nov. 16, 2023, 5:08 p.m.