| BetaDistribution | R Documentation |
An R6 class representing a Beta distribution with parameters.
A Beta distribution with hyperparameters for shape (alpha
and beta). Inherits from class Distribution.
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.
mean()The expected value of the distribution.
BetaDistribution$mean()
Expected value as a numeric value.
mode()The mode of the distribution (if
alpha, beta > 1)
BetaDistribution$mode()
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.
quantile()The quantiles of the Beta distribution.
BetaDistribution$quantile(probs)
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.
Andrew J. Sims andrew.sims@newcastle.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.