mixedVec: Vector modification for mixedGame.R

Description Usage Arguments Value Examples

Description

Given a vector of payoffs and the opponent's mixed strategy the function modifies the payoffs so the expected payoff of the strategy equals the given constant. Built for use in the function mixedGame.

Usage

1
mixedVec(payoffVec, strat, c)

Arguments

payoffVec

A vector of payoffs, corresponding to a single pure strategy

strat

The mixed strategy of the opponent

c

The desired expected payoff

Value

A modified vector of payoffs

Examples

1
mixedVec(c(-5, 3, 7), c(0.2, 0.5, 0.3), 4)

Extreme-Mildness/GT.Tools documentation built on May 3, 2019, 8:31 p.m.