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
#A simple SIR model written in Python | |
#Jon Zelner | |
#University of Michigan | |
#October 8, 2009 | |
#Ok, so first we're going to import our random number and plotting libraries | |
# this is Python's standard random number library. | |
#For heavy-duty applications you'll want to use something else | |
#(like Scipy) but for this example, this will be more than adequate. |
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
#a simple SIR model written in Python | |
#Jon Zelner | |
#University of Michigan | |
#October 8, 2009 | |
#import random number and plotting libraries | |
import random | |
import pylab as pl | |
#set quantities of individuals in each state |
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
#a simple network-based SIR model written in Python | |
#Jon Zelner | |
#University of Michigan | |
#August 11, 2009 | |
import sys, getopt | |
from igraph2Sonia import igraph2sonia | |
#for networks | |
def main(): | |
def usage(): |
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
#a simple network-based SIR model written in Python | |
#Jon Zelner | |
#University of Michigan | |
#August 11, 2009 | |
import sys, getopt | |
from igraph2Sonia import igraph2sonia | |
#for networks | |
def main(): | |
def usage(): |
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
#a simple network-based SIR model written in Python | |
#Jon Zelner | |
#University of Michigan | |
#August 11, 2009 | |
import sys, getopt | |
from igraph2Sonia import igraph2sonia | |
#for networks | |
def main(): | |
def usage(): |
NewerOlder