Skip to content
Snippets Groups Projects
Commit 761ac7bc authored by Rivnyák Tímea's avatar Rivnyák Tímea
Browse files

noisy_deriv for SIRC with noise

parent c23b380c
No related branches found
No related tags found
No related merge requests found
function dydt = noisy_deriv(y, nu, mu, epsilon, beta, gamma, Gamma, q)
S = y(1);
I = y(2);
R = y(3);
C = y(4);
noise = 25 * randn(4);
dSdt = nu - (beta*I + epsilon*beta*C)*S - mu*S + noise(1);
dIdt = (beta*I + epsilon*beta*C)*S - gamma*I - mu*I + noise(2);
dRdt = gamma*(1-q)*I + Gamma*C - mu*R + noise(3);
dCdt = gamma*q*I - Gamma*C - mu*C + noise(4);
dydt = [dSdt; dIdt; dRdt; dCdt];
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment