An R6 class representing a Beta distribution with parameters.
Andrew J. Sims andrew.sims@newcastle.ac.uk
rdecision::Distribution -> BetaDistribution
new()Create an object of class BetaDistribution.
BetaDistribution$new(alpha, beta)alphaparameter of the Beta distribution.
betaparameter of the Beta distribution.
An object of class BetaDistribution.
distribution()Accessor function for the name of the uncertainty distribution.
BetaDistribution$distribution()Distribution name as character string.
Expected value as a numeric value.
mode as a numeric value.
SD()The standard deviation of the distribution.
BetaDistribution$SD()Standard deviation as a numeric value
sample()Draw and hold a random sample from the model variable.
BetaDistribution$sample(expected = FALSE)expectedIf TRUE, sets the next value retrieved by a call to
r() to be the mean of the distribution.
Updated distribution.
probsVector of probabilities, in range [0,1].
Vector of quantiles.
clone()The objects of this class are cloneable with this method.
BetaDistribution$clone(deep = FALSE)deepWhether to make a deep clone.
A Beta distribution with hyperparameters for shape (alpha
and beta). Inherits from class Distribution.