Skip to content

Commit 28de2fe

Browse files
committed
renaming variables
1 parent c05bbf0 commit 28de2fe

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

epidemic_hoya_et_al/SIR_Hoya.ma

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ initialvalue : -1
1717

1818
localtransition : sir-hoya-rule
1919

20-
statevariables: population v c m i_infec i_rec i_sus
21-
statevalues: 100 0.6 1.0 0.5 0.0 0.0 1.0
20+
statevariables: population virulence connection movement i_sus i_infec i_rec
21+
statevalues: 100 0.6 1.0 0.5 1.0 0.0 0.0
2222
initialvariablesvalue: SIR_Hoya.var
2323

2424
neighborports : initial infec rec pop sus
@@ -28,7 +28,7 @@ rule : {~initial := 0; ~pop := $population; ~infec := $i_infec; ~sus := $i_sus;
2828
1 {(0,0)~initial = -1}
2929

3030
rule : {~pop := $population; ~infec := $i_infec; ~sus := $i_sus; ~rec := $i_rec; }
31-
{$i_infec:= trunc(min((1 - #macro(e)) * (0,0)~infec + $v*(0,0)~sus*(0,0)~infec + (0,0)~sus*#macro(effect_neighbours),1)*100)/100;
31+
{$i_infec:= trunc(min((1 - #macro(e)) * (0,0)~infec + $virulence*(0,0)~sus*(0,0)~infec + (0,0)~sus*#macro(effect_neighbours),1)*100)/100;
3232
$i_rec := trunc(min((0,0)~rec + #macro(e)*(0,0)~infec,1)*100)/100;
3333
$i_sus := 1 - $i_rec - $i_infec;}
3434
1 { (0,0)~initial != -1 }

epidemic_hoya_et_al/SIR_Hoya.var

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(25,25) = 10 0.6 1 1 0.7 0.0 0.3
1+
(25,25) = 10 0.6 1 1 0.3 0.7 0.0

epidemic_hoya_et_al/SIR_Hoya_macros.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55

66
#BeginMacro(effect_neighbours)
7-
( ((1,0)~pop / $population) * (1,0)~infec * $v * $c * $m +
8-
((0,-1)~pop / $population) * (0,-1)~infec * $v * $c * $m +
9-
((0,1)~pop / $population) * (0,1)~infec * $v * $c * $m +
10-
((-1,0)~pop / $population) * (-1,0)~infec * $v * $c * $m )
7+
( ((1,0)~pop / $population) * (1,0)~infec * $virulence * $connection * $movement +
8+
((0,-1)~pop / $population) * (0,-1)~infec * $virulence * $connection * $movement +
9+
((0,1)~pop / $population) * (0,1)~infec * $virulence * $connection * $movement +
10+
((-1,0)~pop / $population) * (-1,0)~infec * $virulence * $connection * $movement )
1111
#EndMacro
1212

0 commit comments

Comments
 (0)