Skip to content

Instantly share code, notes, and snippets.

@barun-saha
barun-saha / _gen_stats.py
Last active January 11, 2019 11:20
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.
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"
@barun-saha
barun-saha / default_settings.txt
Last active December 20, 2015 17:18
The ONE simulation scenario to compare the performance of Epidemic and SnW for different area sizes.
#
# 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
#
@barun-saha
barun-saha / del_ratio.py
Created August 6, 2013 18:57
Python script to compute the message delivery ratios together with 95% CI for different scenarios.
#!/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"
@barun-saha
barun-saha / plots.gp
Created August 6, 2013 18:58
Plotting average delivery ratio with GnuPlot.
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