gainFunction: Calculates the gain for one single value

Description Usage Arguments Details Value References Examples

Description

Given the value of an attribute (v1) and the reference point of the same attribute (v2), calculates the gain and returns it [1,2]. It is not built as a stand alone function, rather as an object to be used by other major functions, such as gainMarix, lossMatrix.

Usage

1
gainFunction(v1, v2)

Arguments

v1

value of attribute j in round i

v2

reference point of attribute j

Details

For understanding how this works, see the function itself or refer to the paper. It handles only discrete numbers, so no interval numbers. Also a point to improve further on.

Value

gain, numeric value.

References

[1] Fan, Z. P., Zhang, X., Chen, F. D., & Liu, Y. (2013). Multiple attribute decision making considering aspiration-levels: A method based on prospect theory. Computers & Industrial Engineering, 65(2), 341-350.

[2]Kahneman, D., & Tversky, A. (1979). Prospect theory: An analysis of decision under risk. Econometrica: Journal of the Econometric Society, 263-291.

Examples

1
2
gainFunction(5, 1)  # returns: 4
gainFunction(2, 3)  # returns: 0

avilesd/productConfig documentation built on May 11, 2019, 4:08 p.m.