Generic Discrete Distribution Constructor
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Generic | Constructs a new GenericDiscreteDistribution object. |
Generic | Constructs a new GenericDiscreteDistribution object. |
GenericDiscreteDistribution(Double[])
Constructs a new GenericDiscreteDistribution object.
public GenericDiscreteDistribution(
double[] relativeFrequencies
)
Parameters
Remarks
The first element of relativeFrequencies contains the relative frequency that the value 0 will occur.
The relative frequencies do not need to add up to 1.
Exceptions
Argument | relativeFrequencies is null. |
Argument | One or more of the frequencies in relativeFrequencies is negative. |
GenericDiscreteDistribution(Int32, Double[])
Constructs a new GenericDiscreteDistribution object.
public GenericDiscreteDistribution(
int offset,
double[] relativeFrequencies
)
Parameters
Remarks
The first element of relativeFrequencies contains the relative frequency that the value offset will occur.
The relative frequencies do not need to add up to 1.
Exceptions
Argument | relativeFrequencies is null. |
Argument | One or more of the frequencies in relativeFrequencies is negative. |