U: Utility function

Description Usage Arguments Value Author(s) References

Description

Returns the reward for a player given a payoff matrix and choices

Usage

1
U(c_self, c_op, player, p_matrix)

Arguments

c_self

Player's own choice

c_op

Opponent's choice

player

Which side of the payof matrix is used. 0: first player, 1: second player

p_matrix

A given 2-by-2 payoff matrix

Value

The reward for the specified player

Author(s)

K. Enevoldsen & P. Waade

References

Devaine et al. (2014a, 2014b, 2017)


KennethEnevoldsen/SiRToM documentation built on May 28, 2019, 9:32 a.m.