dsrwon: Combination of two mass functions

View source: R/dsrwon.R

dsrwonR Documentation

Combination of two mass functions

Description

The unnormalized Dempster's rule is used to combine two mass functions mx and my defined on the same frame of discernment and described by their respective basic chance assignments x and y. Dempster's rule of combination is applied. The normalization is not done, leaving the choice to the user to normalize the results or not (for the normalization operation, see function nzdsr).

Usage

dsrwon(x, y, mcores = "no", varnames = NULL, relnb = NULL, infovarnames)

Arguments

x

A basic chance assignment (see bca).

y

A basic chance assignment (see bca).

mcores

Make use of multiple cores ("yes") or not ("no"). Default = "no".

varnames

A character string to name the resulting variable. named "z" if omitted.

relnb

Identification number of the relation. Can be omitted.

infovarnames

Deprecated. Old name for varnames.

Details

The calculations make use of multiple cores available.

The two bca's x and y must be defined on the same frame of discernment for the combination to take place. The relation number of the x input is given to the output result.

Value

A basic chance assignment with these two components added:

  • I12 Intersection table of subsets.

  • Sort_order Sort order of subsets.

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(0,1,1,1,1,0,1,1,1),nrow = 3, 
byrow = TRUE), m = c(0.2,0.5, 0.3), 
cnames = c("a", "b", "c"),  
varnames = "x", idvar = 1)
x2 <- bca(tt = matrix(c(1,0,0,1,1,1),nrow = 2, 
byrow = TRUE), m = c(0.6, 0.4),  
cnames = c("a", "b", "c"),  
varnames = "x", idvar = 1)
dsrwon(x1,x2)
frame <- bca(matrix(c(1,1,1), nrow = 1), m = 1, cnames = c("a","b","c"))
dsrwon(frame, frame)

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