Returns an object of type DiscuitModel
. Available models: SI, SIS, SIR, SEI, SEIR, SEIRa (SEIR and SEIRa are for modelling systems with permanent and temporary immunity, respectively). Custom models can be created by accesing the library directly via C++.
GenerateModel(modelName, initialCondition, obsError = 2)
modelName | model name (e.g. "SIS", "SEIR", etc) |
---|---|
initialCondition | initial condition. |
GenerateModel("SIS", c(100, 1))#> $modelName #> [1] "SIS" #> #> $initialCondition #> [1] 100 1 #> #> $jModel #> Julia Object of type DiscuitModel. #> DiscuitModel("SIS", [100, 1], Discuit.sir_rf, [-1 1; 1 -1], getfield(Discuit, Symbol("#obs_fn#4"))(), getfield(Discuit, Symbol("#prior_density#1"))(), getfield(Discuit, Symbol("#gom1#2")){Float64,Float64}(-1.612085713764618, 8.0), 0) #> attr(,"class") #> [1] "list" "DiscuitModel"