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 |
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 Type=4 for no dogmatic mass : one focal element is on Type=5 for all the focal elements are the singletons Type=6 for all the focal elements are the singletons and on Type=7 for all the focal elements are the singletons and on Type=8 On only one defined singleton, on Type=9 On one defined singleton, on other singletons and on Type=10 On one focal element contain a defined singleton, on other focal elements and on Type=11 On one focal element contain a defined singleton, on other focal elements (not emptyset) and on
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 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 Type=15 Random SSFs with Include and |
singleton |
The singleton element (with only one element) in the focal sets. It should be given a number from 1 to |
Include |
The natrual id of the focal element (not |
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)