Find Jobs
Hire Freelancers

perl project

$10-30 USD

已关闭
已发布将近 9 年前

$10-30 USD

货到付款
Create a program that will model an epidemic on a very small population (size 20-25) using the Graph library in perl. Your program should call Graphviz to render a contact graph and a transmission graph. Guidelines:  Constants:  Population size (N)  Average contacts per person, per day (C)  Transmission rate (TR)  Days latent (DL)  Days infectious (DI)  Percent immune (PI) - these people may have natural immunity or may have been vaccinated  Begin the epidemic with one individual in the infectious state, PI * N people in the removed state (or you may want to include a separate state for immune individuals), and all others in the susceptible state.  Continue the simulation until there are no individuals in the infectious or latent state.  Each day:  Make contacts until total contact limit per day (N*C) is reached.  You decide whether contacts should be totally random, limited to immediate neighbors, or a hybrid approach.  Keep a count of the contacts made. Every contact counts twice, once for each person.  When a contact between two people occurs, if an edge does not already exist in the contact graph, create an edge. If you choose to, you can increase the edge weight each time a contact is made between two individuals and include the edge weight when Graphviz renders the contact graph.  If an infected person contacts a susceptible (or vice versa), the disease should transfer with probability, TR. If transfer occurs, the state of the susceptible individual should change to latent.  Count the number of individuals in each state and update the states if necessary.  Determine if the simulation should continue. Deliverables:  Upload your WELL-DOCUMENTED code to D2L.  Upload a copy of contact graph and transmission graph of a simulation in which at least 5 individuals became infected. You may produce two separate graphs or one graph that uses color to indicate the transmission path (e.g., color the nodes and edges red).
项目 ID: 7950373

关于此项目

3提案
远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
3威客以平均价$38 USD来参与此工作竞价
用户头像
A proposal has not yet been provided
$55 USD 在1天之内
5.0 (3条评论)
2.7
2.7
用户头像
Hi, i'm a +3 years experience Java-Javascript developer, i'v writen some utilities using perl for system administration. Last semester i took a course about simulation, learn how to use several simulation softwares(netlogo, anylogoc, gpss) and wrote a couple of simulations. I will write a software that simulates a spreading disease. The software will run until it finds there are no individuals in the infectious and latent state. The posible states are: - susceptible state - immune state - latent state After DI days the infected individuals will become infected - infectious state After DL days the infected individuals will die. When the simulation is finish it will show the graph of contacts and the disease graph. The spreading will be random(anybody can infect anybody).
$30 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
$30 USD 在5天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
fremont, United States
3.7
5
付款方式已验证
会员自2月 4, 2015起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。