Wednesday, April 16, 2014

Day 28 : Cleanup!

So, some much needed code cleanup was overdue.
Finally, the belief is a function of number of connections of the agent, and normalised between 0 and 1. A quite easy, but crucial modification to the previous model. The new threshold is set at 0.025 , for no special reason.
Also, implemented the changes in x-y coordinates, and made the shift fractional, to make it more realistic.

After all these changes, the results for 10,000 agents, over 100,000 iterations look as

Exponential fit for color1 spread
 Exponential fit for color 50 spread
 2-D Spatial Cluster( with fractional shift)
Interestingly, now c1 and c50 both start at a similar volume (248 and 258 respectively), but still the trend remains same.
Now that the mod is done, I will carry on and implement the cost function. So Long.

No comments:

Post a Comment