RK4: Runge-Kutta 4th Order Method to Solve Differential Equation

Description Usage Arguments Value Author(s) References See Also

View source: R/RK4.R

Description

Runge-Kutta 4th Order Method to Solve Differential Equation

Usage

1
RK4(Y, A, K, dt)

Arguments

Y

initial values for seven states

A

the matrix A that is found in: dY/dt = A*Y + F

K

the zero matrix for the seven states

dt

the time step. This oversamples time to ensure that the algorithm converges

Value

ordinary differential equation result for the seven states

Author(s)

Selcuk Korkmaz, selcukorkmaz@gmail.com

References

https://www.mathworks.com/matlabcentral/fileexchange/74545-generalized-seir-epidemic-model-fitting-and-computation

See Also

SEIQRDP fit_SEIQRDP


genSEIR documentation built on July 12, 2021, 5:07 p.m.