Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ reportInterval: 10
nr_step_size : 300
nr_day_to_simulate : 49
pathfindFileName: pathfind.csv
flatInfectionRate: 0.2
roadInfectionRate: 0.632
offMapInfectionRate: 0.1
2 changes: 1 addition & 1 deletion lib/Simulation/BasicInfectionModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _distanceBasedInfection(self,agent, infectiousAgents, stepSize, timeStamp):
- stepSize = [int] the step length
- timeStamp = [TimeStamp] current timestamp
"""
gradient = 0.05 - self.roadInfectionRate / 2.0
gradient = 0.01 - self.roadInfectionRate / 1.5
for stranger in infectiousAgents:
distance = stranger.currentLocation.calculateDistance(agent.currentLocation)
infectionProbability = ((gradient* distance) + self.roadInfectionRate)/(24 * 3600/ stepSize)
Expand Down