|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--learningRules.ImitateBestLearning
This is a learning rule where an individual adopts the strategy that did best on the previous round from among those strategies choosen by a neighbor. If another strategy is tied with the players current strategy, the player retains her current strategy. If two or more strategies are tied, but both better than her current strategy, she chooses amongst those at random.
Constructor Summary | |
ImitateBestLearning(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 the strategy which did best on the previous 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 ImitateBestLearning(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 |