Get the number of steps before a quantile is reached.

.get_right_boundary_for_distribution_vector(distribution, max_quantile)

Arguments

distribution

list. probability distribution specified in list format e.g. list(name = "gamma", shape = 2, scale = 4). The distribution list must contain a 'name' element, this element must be a string and correspond to one of the types of distributions supported in the Distributions package. distribution must also contain parameters for the specified distribution, in the form 'parameter_name=parameter_value'.

max_quantile

numeric value. Upper quantile that needs to be reached.

Value

number of time steps required to for the probability distribution to reach max_quantile