build_delay_distribution.Rd
The discretization is done by integrating the probability density on (0, 0.5), (0.5, 1.5), (1.5, 2.5)...
build_delay_distribution( distribution, max_quantile = 0.999, offset_by_one = FALSE )
distribution | list. probability distribution specified in list format
e.g. list(name = "gamma", shape = 2, scale = 4).
The |
---|---|
max_quantile | numeric value between 0 and 1. Upper quantile reached by the last element in the discretized distribution vector. |
offset_by_one | boolean.
Set to TRUE if |
vector containing the discretized probability distribution vector of distribution
.
## Obtaining the discretized probabiility vector for different distributions gamma_distribution <- list(name= "gamma", shape = 3.2, scale = 1.3) delay_distribution_vector_1 <- build_delay_distribution(gamma_distribution) normal_distribution <- list(name = "norm", mean = 5, sd = 2) delay_distribution_vector_2 <- build_delay_distribution(normal_distribution) uniform_distribution <- list(name = "unif", min = 0.5, max = 4) delay_distribution_vector_3 <- build_delay_distribution(uniform_distribution)