|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--learningRules.MyopicBRLearning
This class implements myopic best response learning. Here an individual looks at the strategies employed by her neighbors on the last round (only) and chooses the strategy on the next round which was the best response to their action on the last round.
Constructor Summary | |
MyopicBRLearning(Game g)
Constructor |
Method Summary | |
void |
newGeneration(Individual i)
This does nothing since there is no discounting or anything. |
int |
pickStrat(Individual i)
This function chooses a strategy which is a best response to the collective action of the players last round. |
void |
processPayoff(Individual i)
Processing a payoff does nothing, since there are no beliefs to be updated. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MyopicBRLearning(Game g)
g
- The gameMethod 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 calling the function
ModelError
- (although, since this does nothing it will never be thrown)public int pickStrat(Individual i)
pickStrat
in interface LearningRule
i
- The calling individual
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |