Constructs a random number generator for a discrete Poisson distribution
using the specified array of means.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public IntRandomPoissonVaryingMeanDistribution( double[] lambdas ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ lambdas As Double() _ ) |
| Visual C++ |
|---|
public: IntRandomPoissonVaryingMeanDistribution( array<double>^ lambdas ) |
Parameters
- lambdas
- Type: array<
System..::.Double
>[]()[]
Array of means.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if any of the supplied means in less than 0. |