|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--learningRules.PayoffLearning
A learning rule where individuals learn the payoffs in a n-strategy game. This learning rule treats the payoffs for each strategy as stable (i.e. non-strategic). It using beta distribution learning.
Constructor Summary | |
PayoffLearning(Game g)
|
Method Summary | |
void |
newGeneration(Individual i)
This does nothing since there is no discounting or anything. |
int |
pickStrat(Individual i)
Chooses the strategy with the highest expected payoff. |
void |
processPayoff(Individual i)
This processes the payoff by updating the agents beliefs about each payoff based on the information received this round. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PayoffLearning(Game g) throws ModelError
Method Detail |
public void newGeneration(Individual i) throws ModelError
newGeneration
in interface LearningRule
i
- The individual calling the function
ModelError
- (although, since this does nothing it will never be thrown)public void processPayoff(Individual i) throws ModelError
processPayoff
in interface LearningRule
i
- The individual whose beliefs should be updated.
ModelError
public int pickStrat(Individual i)
pickStrat
in interface LearningRule
i
- the individual whose strategy is choosen
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |