Returns the maximum of one or more delay distribution
Returns the maximum of one or more delay distribution
This works out the maximum of all the (parametric / nonparametric) delay distributions combined in the passed <dist_spec> (ignoring any uncertainty in parameters)
## S3 method for class 'dist_spec'max(x,...)
Arguments
x: The <dist_spec> to use
...: Not used
Returns
A vector of means.
Examples
# A fixed gamma distribution with mean 5 and sd 1.dist1 <- Gamma(mean =5, sd =1, max =20)max(dist1)# An uncertain lognormal distribution with meanlog and sdlog normally# distributed as Normal(3, 0.5) and Normal(2, 0.5) respectivelydist2 <- LogNormal( meanlog = Normal(3,0.5), sdlog = Normal(2,0.5), max =20)max(dist2)# The max the sum of two distributionsmax(dist1 + dist2)