R/RcppExports.R

Defines functions rpwexp_naive_cpp rpwexp_inverse_cdf_cpp

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' The piecewise exponential distribution using the inverse CDF method
#'
#' @param n Number of observations to be generated.
#' @param fail_rate A data frame containing `duration` and `rate` variables.
#'
#' @noRd
#'
rpwexp_inverse_cdf_cpp <- function(n, fail_rate) {
    .Call(`_simtrial_rpwexp_inverse_cdf_cpp`, n, fail_rate)
}

#' The piecewise exponential distribution using the naive method
#'
#' @param n Number of observations to be generated.
#' @param fail_rate A data frame containing `duration` and `rate` variables.
#'
#' @noRd
#'
rpwexp_naive_cpp <- function(n, fail_rate) {
    .Call(`_simtrial_rpwexp_naive_cpp`, n, fail_rate)
}
Merck/simtrial documentation built on April 14, 2025, 5:37 a.m.