|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--learningRules.StratReinforce
Simple reinforcement learning for strategies
Constructor Summary | |
StratReinforce(double s)
This takes a multiplicative scalling factor so that the weights don't grow extremely large (outside the realm of double) |
Method Summary | |
void |
newGeneration(Individual i)
Prepares the individual for a new generation. |
int |
pickStrat(Individual i)
Chooses a strategy based on standard reinforcement method |
void |
processPayoff(Individual i)
Processes the payoff by adding the payoff to the weight of the strategy choosen on this round |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StratReinforce(double s)
s
- The scaling factorMethod Detail |
public void newGeneration(Individual i) throws ModelError
newGeneration
in interface LearningRule
i
- The calling individual
ModelError
public void processPayoff(Individual i) throws ModelError
processPayoff
in interface LearningRule
i
- The calling individual
ModelError
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 |