protected class EquilibriumPlayingSGAgent.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 |
|---|
BimatrixTuple(double[][] rowPayoffs,
double[][] colPayoffs)
Initializes with a given row and column player payoffs.
|
BimatrixTuple(int nRows,
int nCols)
Initializes the payoff matrices for a bimatrix of the given row and column dimensionality
|
| Modifier and Type | Method and Description |
|---|---|
int |
nCols()
Returns the number of columns
|
int |
nRows()
Returns the number of rows
|
void |
setPayoff(int row,
int col,
double rowPayoff,
double colPayoff)
Sets the payoffs for a given row and column.
|
public double[][] rowPayoffs
public double[][] colPayoffs
public BimatrixTuple(int nRows,
int nCols)
nRows - the number of rowsnCols - the number of columnspublic 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.