Learn R Programming

Rfmtool (version 5.0.3)

fm.Shapley: Shapley value computation function

Description

Calculates the Shapley values of input criteria from general fuzzy measure,

Usage

fm.Shapley(v,env=NULL)

Value

output

The output is an array of size n, which contain Shapley values of input criteria.

Arguments

v

Fuzzy measure in general representation.

env

Environment variable obtained from fm.Init(n).

Author

Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University

Examples

Run this code

env<-fm.Init(3)
fm.Shapley(c(0, 0.3, 0.5, 0.6, 0.4, 0.8, 0.7, 1),env)

Run the code above in your browser using DataLab