ContinuousUniformDistribution Constructor

Definition

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

Overload List

ContinuousUniformDistribution() Constructs a new ContinuousUniformDistribution over the unit interval.
ContinuousUniformDistribution(Double) Constructs a new ContinuousUniformDistribution over an interval with lower bound zero and specified upper bound.
ContinuousUniformDistribution(Double, Double) Constructs a new ContinuousUniformDistribution over a specified interval.

ContinuousUniformDistribution

Constructs a new ContinuousUniformDistribution over the unit interval.
C#
public ContinuousUniformDistribution()

Remarks

This constructor creates the 'standard' uniform distribution over the unit interval [0, 1].

ContinuousUniformDistribution(Double)

Constructs a new ContinuousUniformDistribution over an interval with lower bound zero and specified upper bound.
C#
public ContinuousUniformDistribution(
	double upperBound
)

Parameters

upperBound  Double
The upper bound of the interval.

Exceptions

ArgumentOutOfRangeException

upperBound is less than zero.

ContinuousUniformDistribution(Double, Double)

Constructs a new ContinuousUniformDistribution over a specified interval.
C#
public ContinuousUniformDistribution(
	double lowerBound,
	double upperBound
)

Parameters

lowerBound  Double
The lower bound of the interval.
upperBound  Double
The upper bound of the interval.

Exceptions

ArgumentOutOfRangeException

upperBound is less than lowerBound.

See Also