Skip to content
Snippets Groups Projects
Commit 6781ca74 authored by Paul CACHEUX's avatar Paul CACHEUX
Browse files

Nouveau modele d'infection

parent 7628363b
Branches
No related tags found
No related merge requests found
clear figure
N = 180;
N = 200;
S = 990;
I = 10;
......@@ -10,14 +10,14 @@ R = 0;
input = build_input(S, I, R, 12);
coeffs = options;
coeffs.InfectionRate = 0.6;
coeffs.ImmunisationRate = 0.04;
coeffs.InfectionRate = 0.02;
coeffs.ImmunisationRate = 0.029;
coeffs.ImmunisationLossRate = 2.7e-4;
coeffs.DeathRate = 1.3e-3;
coeffs.DeathRate = 1.3e-2;
coeffs.NaturalDeathRate = 2e-5;
coeffs.NatalityRate = 5e-5;
% VaccinationRate = build_vacc_rate(0, 2.4e-4, 50, N);
VaccinationRate = build_vacc_rate(0, 0, 50, N);
VaccinationRate = build_vacc_rate(2.4e-4, 2.4e-3, 50, N);
% VaccinationRate = build_vacc_rate(0, 0, 50, N);
Slist = zeros(1, N);
Wlist = zeros(1, N);
......
......@@ -7,15 +7,5 @@ classdef options
NaturalDeathRate
NatalityRate
end
properties(Dependent)
R0
end
methods
function R0=get.R0(obj)
R0 = obj.InfectionRate / (obj.ImmunisationRate + obj.DeathRate + obj.VaccinationRate);
end
end
end
......@@ -12,8 +12,10 @@ end
if length(X) > 3
infecter = sum(X(4:length(X)) + I);
new_waiting(1) = options.InfectionRate * S * infecter/N;
dS = -options.InfectionRate * S * infecter/N;
infection = S * (1 - 25 * options.InfectionRate / N) ^ I;
% infection = options.InfectionRate * S * infecter/N;
new_waiting(1) = infection;
dS = -infection;
dI = X(length(X));
else
dS = -options.InfectionRate * S * I/N;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment