# NOT RUN {
# Different parameterisations
Weibull$new(shape = 1, scale = 2)
Weibull$new(shape = 2, altscale = 2)
x <- Weibull$new(shape = 2, scale = 3)
# Update parameters
x$setParameterValue(scale = 1)
x$parameters()
# d/p/q/r
x$pdf(5)
x$cdf(5)
x$quantile(0.42)
x$rand(4)
# Statistics
x$mean()
x$variance()
summary(x)
# }
Run the code above in your browser using DataLab