newExpWaitingTime: Creates an exponentially distributed waiting time

View source: R/RcppExports.R

newExpWaitingTimeR Documentation

Creates an exponentially distributed waiting time

Description

Creates an exponentially distributed waiting time

Arguments

rate

the rate of the exponential distribution

Details

This function creates an C++ object of type ExpWaitingTime. It can be passed to addTransition or Simulation$addTransition to specify the waiting time for a transition. As a C++ object, it is faster than using an R function to generate waiting times because there is no need to call an R function from C++.

Value

an external pointer


ABM documentation built on April 4, 2025, 1:44 a.m.