protected class EquilibriumPlayingAgent.BimatrixTuple
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double[][] |
colPayoffs
The column player's payoffs.
|
double[][] |
rowPayoffs
The row player's payoffs.
|
Constructor and Description |
---|
EquilibriumPlayingAgent.BimatrixTuple(double[][] rowPayoffs,
double[][] colPayoffs)
Initializes with a given row and column player payoffs.
|
EquilibriumPlayingAgent.BimatrixTuple(int nRows,
int nCols)
Initializes the payoff matrices for a bimatrix of the given row and column dimensionality
|
public double[][] rowPayoffs
public double[][] colPayoffs
public EquilibriumPlayingAgent.BimatrixTuple(int nRows, int nCols)
nRows
- the number of rowsnCols
- the number of columnspublic EquilibriumPlayingAgent.BimatrixTuple(double[][] rowPayoffs, double[][] colPayoffs)
rowPayoffs
- the row player payoffs.colPayoffs
- the column player payoffs.public int nRows()
public int nCols()
public void setPayoff(int row, int col, double rowPayoff, double colPayoff)
row
- the row index (player 1's action).col
- the column index (player'2 action).rowPayoff
- the payoff the row player receives.colPayoff
- the payoff the column player receives.