RandomMass {ibelief}R Documentation

Generating masses

Description

Different ways to generate masses

Usage

RandomMass(nbFocalElement, ThetaSize, nbMass, Type, singleton, Include)

Arguments

nbFocalElement

The number of focal elements

ThetaSize

The length of the discernment frame \Theta

nbMass

The number of masses to generate

Type

Which kind of mass to generate:

Type=1 for focal elements can be everywhere

Type=2 for focal elements can not be on the emptyset

Type=3 for no dogmatic mass : one focal element is on \Theta (ignorance)

Type=4 for no dogmatic mass : one focal element is on \Theta (ignorance) and no focal elements are on the emptyset

Type=5 for all the focal elements are the singletons

Type=6 for all the focal elements are the singletons and on \Theta (ignorance)

Type=7 for all the focal elements are the singletons and on \Theta (ignorance), but not on all the singletons

Type=8 On only one defined singleton, on \Theta (ignorance), and others

Type=9 On one defined singleton, on other singletons and on \Theta (ignorance)

Type=10 On one focal element contain a defined singleton, on other focal elements and on \Theta (ignorance)

Type=11 On one focal element contain a defined singleton, on other focal elements (not emptyset) and on \Theta (ignorance)

Type=12 For consonant bba with nested focal elements, all of them contain a defined singleton. If parameter singleton is set to 0, the defined singleton can be any one of the element in the discernment framework. Note that the defined singleton may not be one of the focal elements.

Type=13 For non-dogmatic consonant bba with nested focal elements, all of them contain a defined singleton. Different from Type 12, the mass given to \Theta must be positive (non-dogmatic). If parameter singleton is set to 0, the defined sigleton can be any one of the element in the discernment framework. Note that the defined singleton is one of the focal elements.

Type=14 For non-dogmatic consonant bba with nested focal elements, all of them contain a defined singleton. The focal elements must contain the defined sigleton and \Theta. If parameter singleton is set to 0, the defined sigleton can be any one of the element in the discernment framework. Note that the difined singleton may not be the focal elements.

Type=15 Random SSFs with Include and \Theta as focal elements. Generally, parameter Include shoud have the same length as nbMass. If the lenght of parameter Include is 1, all the random masses have the same focal elements. If Include is missing, then the focal element (except \Theta) could be randomly set to be any subset of \Theta except the empty set and the total ignorance.

singleton

The singleton element (with only one element) in the focal sets. It should be given a number from 1 to ThetaSize if Type is from 5 to 11.

Include

The natrual id of the focal element (not \Theta) of SSFs

Value

The generated mass matrix. Each column represents a piece of mass

Examples


RandomMass(nbFocalElement=3, ThetaSize=3, nbMass=4, Type=1)
RandomMass(nbFocalElement=3, ThetaSize=4, nbMass=4, Type=3)
RandomMass(nbFocalElement=4, ThetaSize=4, nbMass=4, Type=5,singleton=2)
RandomMass(nbFocalElement=4, ThetaSize=4, nbMass=4, Type=10,singleton=2)
RandomMass(nbFocalElement=4, ThetaSize=4, nbMass=4, Type=13,singleton=2)
RandomMass(nbFocalElement=2, ThetaSize=4, nbMass=4, Type=14,singleton=2)
RandomMass(ThetaSize=4, nbMass=4, Type=15, Include=2)


[Package ibelief version 1.3.1 Index]