Weighted network statistics calculation
Registered by
Dimitris Kalamaras
The problem was that the calculation of std IDC' was done by dividing IDC with the number of vertices minus 1. That was okay for non-weighted graphs. But not for weighted graphs. I changed the code so that if the graph is weighted, SocNetv calculates IDC' by dividing IDC with the sum of IDCs. And it seems okay but work needs to be done for GDC.
For instance, check this network:
0 0 0 1 0
1 0 0 0 0
0 1 0 0 0
0 0 0 0 1
0 0 0 0 0
It reports GDC = 0.009
But if we change a link weight ie.
0 0 0 1 0
1 0 0 0 0
0 1 0 0 0
0 0 0 0 12
0 0 0 0 0
then it reports GDC = 0.938 which is clearly wrong.
The thing is, I think we cannot have GDC in weighted networks.
Blueprint information
- Status:
- Complete
- Approver:
- Dimitris Kalamaras
- Priority:
- Essential
- Drafter:
- Dimitris Kalamaras
- Direction:
- Approved
- Assignee:
- Dimitris Kalamaras
- Definition:
- Approved
- Series goal:
- Accepted for 1.x
- Implementation:
- Implemented
- Milestone target:
- 2.0
- Started by
- Dimitris Kalamaras
- Completed by
- Dimitris Kalamaras
Related branches
Sprints
Whiteboard
(?)