Skip to content

Commit

Permalink
Merge pull request #121 from mrc-ide/mrc-6090
Browse files Browse the repository at this point in the history
Expand appraoch to remaining distribution functions
  • Loading branch information
weshinsley authored Dec 4, 2024
2 parents 7e2ae12 + 22f93ee commit 0ef8481
Show file tree
Hide file tree
Showing 20 changed files with 1,684 additions and 67 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: monty
Title: Monte Carlo Models
Version: 0.3.10
Version: 0.3.11
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
email = "rich.fitzjohn@gmail.com"),
person("Wes", "Hinsley", role = "aut"),
Expand Down
28 changes: 28 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,40 @@ export(monty_model_split)
export(monty_observer)
export(monty_packer)
export(monty_packer_grouped)
export(monty_random_beta)
export(monty_random_beta_binomial_ab)
export(monty_random_beta_binomial_prob)
export(monty_random_binomial)
export(monty_random_cauchy)
export(monty_random_exponential_mean)
export(monty_random_exponential_rate)
export(monty_random_gamma_rate)
export(monty_random_gamma_scale)
export(monty_random_hypergeometric)
export(monty_random_n_beta)
export(monty_random_n_beta_binomial_ab)
export(monty_random_n_beta_binomial_prob)
export(monty_random_n_binomial)
export(monty_random_n_cauchy)
export(monty_random_n_exponential_mean)
export(monty_random_n_exponential_rate)
export(monty_random_n_gamma_rate)
export(monty_random_n_gamma_scale)
export(monty_random_n_hypergeometric)
export(monty_random_n_negative_binomial_mu)
export(monty_random_n_negative_binomial_prob)
export(monty_random_n_normal)
export(monty_random_n_poisson)
export(monty_random_n_real)
export(monty_random_n_truncated_normal)
export(monty_random_n_uniform)
export(monty_random_negative_binomial_mu)
export(monty_random_negative_binomial_prob)
export(monty_random_normal)
export(monty_random_poisson)
export(monty_random_real)
export(monty_random_truncated_normal)
export(monty_random_uniform)
export(monty_rng)
export(monty_rng_create)
export(monty_rng_distributed_pointer)
Expand Down
2 changes: 1 addition & 1 deletion R/combine.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ monty_model_combine <- function(a, b, properties = NULL,
##'
##' @export
monty_model_split <- function(model, prior_first = FALSE) {
require_monty_model(model, arg = name, call = call)
require_monty_model(model, arg = "model", call = call)

if (!inherits(model$model$data, "_combined_model")) {
cli::cli_abort(
Expand Down
112 changes: 112 additions & 0 deletions R/cpp11.R

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0ef8481

Please sign in to comment.