marginal_contribution_mean: fauxiliar

View source: R/marginal_contribution_mean.R

marginal_contribution_meanR Documentation

fauxiliar

Description

Intermediate auxiliar function to calculate the mean of the marginal contributions for a set of permutations.

Usage

marginal_contribution_mean(permute, costs)

Arguments

permute

Matrix with n columns. By rows, it contains a order.

costs

Vector with the associated costs to each posible coalition in a set of agents N.

Value

A vector with n elements with component i equal to the mean of the marginal contribution indicated by each order in permute for agent i.


Inventorymodel documentation built on Aug. 17, 2023, 9:06 a.m.