This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
''' | |
A simple module with a method to get the value of a statistic from the MessageStatsReport of the ONE simulator. Also provides a method to compute the 95% confidence interval from a set of sample values. | |
''' | |
__author__ = "Barun Kumar Saha" | |
__copyright__ = "Copyright 2013, Barun Kumar Saha" | |
__license__ = "MIT" | |
__version__ = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Performance comparison of Epidemic and Snw for different area dimensions | |
# | |
# Group.router: 2 | |
# MovementModel.worldSize: 3 | |
# MovementModel.rngSeed: 5 | |
# | |
# Total scenarios = 2 * 3 * 5 = 30 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
''' | |
A simple to compute the delivery ratio of the messages (with 95% CI) under | |
various scenarios. | |
''' | |
__author__ = "Barun Kumar Saha" | |
__copyright__ = "Copyright 2013, Barun Kumar Saha" | |
__license__ = "MIT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set terminal postscript eps enhanced color solid colortext 9 | |
set output 'del_ratio.eps' | |
set style fill pattern border | |
set style histogram errorbars gap 1 lw 3.5 | |
set style data histograms | |
set boxwidth 0.9 | |
set bars 1 | |