Beta Distribution Constructor
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Beta | Constructs the beta distribution from a numerical variable. |
Beta | Constructs a new BetaDistribution using the specified shape parameters. |
Beta | Constructs the beta distribution from a numerical variable. |
Beta | Constructs a new BetaDistribution using the specified shape parameters. |
BetaDistribution(Vector<Double>)
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
Argument | variable is null. |
BetaDistribution(Double, Double)
public BetaDistribution(
double alpha,
double beta
)
Parameters
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)
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
Argument | variable is null. |
BetaDistribution(Double, Double, Double, Double)
public BetaDistribution(
double alpha,
double beta,
double lowerBound,
double upperBound
)
Parameters
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
Argument | upperBound is less than lowerBound. |
Argument | lowerBound is infinite or NaN. -or- upperBound is infinite or NaN. |