Discrete Uniform Distribution Constructor
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Discrete | Constructs a new DiscreteUniformDistribution with the specified upper bound. |
Discrete | Estimates the parameter of the distribution of a variable assuming it follows a discrete uniform distribution. |
Discrete | Constructs a new DiscreteUniformDistribution over the specified interval. |
DiscreteUniformDistribution(Int32)
Constructs a new DiscreteUniformDistribution
with the specified upper bound.
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.
public DiscreteUniformDistribution(
Vector<double> variable
)
Parameters
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
Argument | variable is null. |
DiscreteUniformDistribution(Int32, Int32)
Constructs a new DiscreteUniformDistribution
over the specified interval.
public DiscreteUniformDistribution(
int minValue,
int maxValue
)