I started porting the network to Matlab, and after doing some reading, I decided to go with classes and separate *.m functions for EVERYTHING. Not sure if this much modularity will be needed, but I hate working with long, undocumented code.
I created a basic class for agent nodes, having 2 belief values, and 1 enterprise membership, and also provided a method to generate and initialise the nodes. Each node randomly gets assigned one of the four enterprises, and two random values for belief.
So far, everything has been updated in the repository.
Next step : Assign connections.
- Option 1.
- From a node-view. i.e., for EachAgent, randomly pick/assign number of connections, and generate those unique connections. but this screws up for bi-directional connections, which is important for my purpose, otherwise, the whole network would be like a big group of people stalking each other. Which, while interesting, is a bit creepy, and let's say is "Out of Scope" for now.
- Option 2.
- From a connection-view, i.e., from a combination of random n-square (non-unique) possibilities for n-agent nodes, generate the unique connections. This seems the way to go. However, I should think a bit more about it.
So Long.
p.s. - While at the Spring Premiere at the Student Union last Friday, it occurred to me that it is not the best way to go analysing human networks without accounting for the social events, where the interactions between the nodes are much more likely to happen, and also to be different.
Somehow, I should try to simulate this effect based on some Events. Something to think about and discuss with the mentor. Plus, "Simulated drunk people at a party" always looks good on the resume!!
No comments:
Post a Comment