ashokkrish / episim

episim is an R Shiny app for mathematical modelling of infectious diseases
GNU General Public License v3.0
3 stars 3 forks source link

Implement a flexible model configuration interface for the value of both *Timesteps* and *Increment* #65

Open bryce-carson opened 1 month ago

bryce-carson commented 1 month ago

I need a seq() or seq_along() function call that properly implements the semantics you're wanting for the simulation.

Can you note here, in a comment, the scientific meaning of timesteps and increment? I remember discussing this on Friday, but I don't recall the exact meaning. Please parse out the meaning of the following function calls and tell me which is correct for the simulation, then I'll implement that usage and ensure the widgets are there and the values used correctly.

# Used for stochastic models
replicates <- 100

timestep <- 0.01
increment <- 1

seq(to = increment, by = timestep) # numeric(3301)
seq(length.out = timestep, by = increment) # numeric(100)
bryce-carson commented 1 month ago

@ashokkrish , I'm tagging you to bring this to your attention. I just need the information; you don't need to resolve the issue or do any coding. 😀