|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--models.RandomNetworkModel
This class implements a learning in network model with random network formation. This model uses beta-distribution learning (aka payoff learning).
Field Summary | |
static MersenneTwister |
random
|
Constructor Summary | |
RandomNetworkModel(Individual[] i,
Game g,
LearningRule l,
double m,
double p)
|
Method Summary | |
int |
detectConvergence(int optimal)
Checks to see if the population has converged either to the correct state or the bad state. |
double |
getConnectProb()
Gets the connection probability |
Game |
getGame()
Returns the value of game. |
Individual[] |
getIndivids()
Returns the value of indivis. |
static void |
main(java.lang.String[] args)
|
void |
playGen()
Resets then plays a generation. |
void |
setConnectProb(double p)
Sets the connection probability |
void |
setGame(Game game)
Sets the value of game. |
void |
setIndivids(Individual[] individs)
Sets the value of indivis. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final MersenneTwister random
Constructor Detail |
public RandomNetworkModel(Individual[] i, Game g, LearningRule l, double m, double p) throws ModelError
Method Detail |
public Individual[] getIndivids()
public void setIndivids(Individual[] individs)
public Game getGame()
public void setGame(Game game)
game
- The value to assign game.public double getConnectProb()
public void setConnectProb(double p)
p
- The connection probabilitypublic void playGen() throws ModelError
ModelError
- If something bad happenspublic int detectConvergence(int optimal) throws ModelError
optimal
- The optimal action
ModelError
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |