discounting {ibelief} | R Documentation |
Discounting masses
Description
Discount masses using given factors
Usage
discounting(MassIn, alpha)
Arguments
MassIn |
Matrix with |
alpha |
Discounting factor. A number or a vector with length of |
Value
Mass matrix with the same dimension as MassIn. The discounted masses, each column is a piece of mass. If the input is a vector, the output is also a vector.
Examples
## The conflict table for two experts in a discernment frame with three elements
m1=c(0,0.4, 0.1, 0.2, 0.2, 0, 0, 0.1);
m2=c(0,0.2, 0.3, 0.1, 0.1, 0, 0.2, 0.1);
discounting(m1,0.95)
# if only one factor is given, all the masses are discounted using the same factor
discounting(cbind(m1,m2),0.95)
# if the factor vector is given, the masses are discounted using the corresponding factor
discounting(cbind(m1,m2),c(0.95,0.9))
[Package ibelief version 1.3.1 Index]