|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--learningRules.BgLearning
This is a strategy learning model for the Bala Goyal Model. This model presumes there are n states of the world and n strategies. It then has the individuals update probabilites base on the state of the world.
Constructor Summary | |
BgLearning(Game[] g)
Initializing a BgLearning model. |
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 for the player. |
void |
processPayoff(Individual i)
This processes a payoff for an individual. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BgLearning(Game[] g)
g
- The games array containing all the possible games one for each state of the
worldMethod 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
- if something fails durring updatingpublic 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 |