Skip to content

Commit fe5b263

Browse files
committed
Add basic example and try resolving generic run class warning
1 parent 15c6965 commit fe5b263

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Diff for: R/LFMCMC.R

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#' Likelihood-Free Markhov Chain Monte Carlo (LFMCMC)
22
#'
33
#'
4-
#' @returns The model of class `epiworld_lfmcmc`
4+
#' @aliases epiworld_lfmcmc
5+
#' @details
6+
#' TODO: Detail LFMCMC
7+
#' @returns
8+
#' - The `LFMCMC`function returns a model of class [epiworld_lfmcmc].
9+
#' @examples
10+
#' model_lfmcmc <- LFMCMC()
511
#' @export
612
LFMCMC <- function() {
713
structure(
@@ -11,14 +17,14 @@ LFMCMC <- function() {
1117
}
1218

1319
#' @rdname LFMCMC
14-
#' @param lfmcmc LFMCMC model
20+
#' @param model LFMCMC model
1521
#' @param params_init_ Initial model parameters
1622
#' @param n_samples_ Number of samples
1723
#' @param epsilon_ Epsilon parameter
1824
#' @returns The simulated model of class `epiworld_lfmcmc`.
1925
#' @export
20-
run.epiworld_lfmcmc <- function(lfmcmc, params_init_, n_samples_, epsilon_) {
21-
run_lfmcmc_cpp(lfmcmc, params_init_, n_samples_, epsilon_)
26+
run.epiworld_lfmcmc <- function(model, params_init_, n_samples_, epsilon_) {
27+
run_lfmcmc_cpp(model, params_init_, n_samples_, epsilon_)
2228
invisible(lfmcmc)
2329
}
2430

0 commit comments

Comments
 (0)