Building random network with different seeds
Posted: Wed Sep 29, 2010 12:51 am
Hi,
I'm trying to build a network with random connections.
The trick is I would like to average my results over several different random seeds.
The problem is I'm not sure how to clear the previous network created before I reassign a new seed and re-run the simulation.
I cannot also envolope the code creating the connections into a procedure because I'm instantiating new objects inside the function.
What I want to do is this:
Loop {
Reassign random seed
BuildConnections()
Run simulation ()
Get results()
Purge previous connections()
}
Any advice on how I can structure my code to accomplish this.
THanks
I'm trying to build a network with random connections.
The trick is I would like to average my results over several different random seeds.
The problem is I'm not sure how to clear the previous network created before I reassign a new seed and re-run the simulation.
I cannot also envolope the code creating the connections into a procedure because I'm instantiating new objects inside the function.
What I want to do is this:
Loop {
Reassign random seed
BuildConnections()
Run simulation ()
Get results()
Purge previous connections()
}
Any advice on how I can structure my code to accomplish this.
THanks