|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--learningRules.HybridLearning
This class implements the Hybrid learning rule. Every generation each individual averages their neighbors beliefs with their own (giving equal weight to each persons belief) and then adopts it. Technically, the new beliefs are placed in domain 1 (where the averaged beliefs are in domain 0). This requires the calling model to copy beliefs from domain 1 to domain 0 after calling newGeneration();
Constructor Summary | |
HybridLearning(Game[] g)
|
Method Summary | |
void |
newGeneration(Individual i)
The new generation method implements the averaging. |
int |
pickStrat(Individual i)
Chooses the strategy with the highest expectation |
void |
processPayoff(Individual i)
Updates beliefs based on the payoffs of neighbors. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HybridLearning(Game[] g)
Method Detail |
public void newGeneration(Individual i) throws ModelError
newGeneration
in interface LearningRule
i
- The calling individual
ModelError
public int pickStrat(Individual i)
pickStrat
in interface LearningRule
i
- The calling individualpublic void processPayoff(Individual i) throws ModelError
processPayoff
in interface LearningRule
i
- The calling individual
ModelError
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |