Discrete Uniform Distribution Constructor
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
- 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.
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.