BetaDistribution Constructor

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

BetaDistribution(Vector<Double>) Constructs the beta distribution from a numerical variable.
BetaDistribution(Double, Double) Constructs a new BetaDistribution using the specified shape parameters.
BetaDistribution(Vector<Double>, EstimationMethod) Constructs the beta distribution from a numerical variable.
BetaDistribution(Double, Double, Double, Double) Constructs a new BetaDistribution using the specified shape parameters.

BetaDistribution(Vector<Double>)

Constructs the beta distribution from a numerical variable.
C#
public BetaDistribution(
	Vector<double> variable
)

Parameters

variable  Vector<Double>
A vector.

Remarks

This constructor estimates the distribution of variable using the matching moments method. The lower and upper bound are assumed to be zero and one.

Exceptions

ArgumentNullException

variable is null.

BetaDistribution(Double, Double)

Constructs a new BetaDistribution using the specified shape parameters.
C#
public BetaDistribution(
	double alpha,
	double beta
)

Parameters

alpha  Double
First shape parameter of the distribution.
beta  Double
Second shape parameter of the distribution.

Remarks

Beta distributions have two shape parameters, usually called α and β. The first determines the behavior at the lower bound of the definition interval. The second determines the behavior at the upper bound of the definition interval.

This constructor creates a BetaDistribution that is defined over the interval from zero to one. Another constructor allows you to specify the interval.

BetaDistribution(Vector<Double>, EstimationMethod)

Constructs the beta distribution from a numerical variable.
C#
public BetaDistribution(
	Vector<double> variable,
	EstimationMethod method
)

Parameters

variable  Vector<Double>
A vector.
method  EstimationMethod
An EstimationMethod value that specifies the method to be used to estimate the distribution parameters.

Remarks

This constructor estimates the distribution of variable using the matching moments method. The lower and upper bound are assumed to be zero and one.

Exceptions

ArgumentNullException

variable is null.

BetaDistribution(Double, Double, Double, Double)

Constructs a new BetaDistribution using the specified shape parameters.
C#
public BetaDistribution(
	double alpha,
	double beta,
	double lowerBound,
	double upperBound
)

Parameters

alpha  Double
First shape parameter of the distribution.
beta  Double
Second shape parameter of the distribution.
lowerBound  Double
The lower bound of the interval on which the Beta distribution is defined.
upperBound  Double
The upper bound of the interval on which the Beta distribution is defined.

Remarks

Use this constructor to create a BetaDistribution that models random samples with a specified finite range. The lowerBound and upperBound parameters specify the boundaries of this interval.

Beta distributions have two shape parameters, usually called α and β. The first determines the behavior at the lower bound of the definition interval. The second determines the behavior at the upper bound of the definition interval.

The lowerBound and upperBound specify the lower and upper bound of the definition interval. The probability density is zero outside this interval. The upper bound must be greater than the lower bound. Otherwise, an ArgumentException is thrown.

Exceptions

ArgumentException

upperBound is less than lowerBound.

ArgumentOutOfRangeException

lowerBound is infinite or NaN.

-or-

upperBound is infinite or NaN.

See Also