public UQuadraticDistribution ( [ a, [ b ) : System | ||
a | [ | Parameter a. |
b | [ | Parameter b. |
Результат | System |
public UQuadraticDistribution([Nonnegative] double a, [Positive] double b)
{
if (b < a)
{
throw new ArgumentOutOfRangeException("b",
"Parameter b must be equal to or greater than parameter a.");
}
this.a = a;
this.b = b;
this.alpha = 12 / Math.Pow(b - a, 3);
this.beta = (b + a) / 2;
}