DiscreteUniformDistribution Constructor

Definition

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

Overload List

DiscreteUniformDistribution(Int32) Constructs a new DiscreteUniformDistribution with the specified upper bound.
DiscreteUniformDistribution(Vector<Double>) Estimates the parameter of the distribution of a variable assuming it follows a discrete uniform distribution.
DiscreteUniformDistribution(Int32, Int32) Constructs a new DiscreteUniformDistribution over the specified interval.

DiscreteUniformDistribution(Int32)

Constructs a new DiscreteUniformDistribution with the specified upper bound.
C#
public DiscreteUniformDistribution(
	int maxValue
)

Parameters

maxValue  Int32
The upper bound of the distribution. Every sample will be less than this value.

DiscreteUniformDistribution(Vector<Double>)

Estimates the parameter of the distribution of a variable assuming it follows a discrete uniform distribution.
C#
public DiscreteUniformDistribution(
	Vector<double> variable
)

Parameters

variable  Vector<Double>
A vector.

Return Value

The DiscreteUniformDistribution that best matches the distribution of variable.

Remarks

Use this constructor to create a DiscreteUniformDistribution whose parameter is estimated from variable.

Exceptions

ArgumentNullException

variable is null.

DiscreteUniformDistribution(Int32, Int32)

Constructs a new DiscreteUniformDistribution over the specified interval.
C#
public DiscreteUniformDistribution(
	int minValue,
	int maxValue
)

Parameters

minValue  Int32
The lower bound of the interval.
maxValue  Int32
The upper bound of the interval. Every sample will be less than this value.

See Also