Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent definition of distributions as function input #174

Open
joshwlambert opened this issue Jan 10, 2025 · 0 comments
Open

Consistent definition of distributions as function input #174

joshwlambert opened this issue Jan 10, 2025 · 0 comments

Comments

@joshwlambert
Copy link
Member

The sim_*() functions accept an anonymous function as input for delay distributions, but the definition of the contact distribution and Ct distribution are defined by a character string and a named vector for the distribution parameters.

There doesn't seem any need to have this inconsistency in the package and they both defining distributions.

The create_config() function should be updated to create anonymous functions by default, matching the design of the sim_*() functions; and the internal simulation code should be updated to use anonymous functions instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant