Constructs a random number generator for a Rayleigh distribution
using the specified distribution parameters.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public DoubleRandomRayleighDistribution( double displacement, double scale, DoubleRandomRayleighDistribution..::.GenerationMethod method ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ displacement As Double, _ scale As Double, _ method As DoubleRandomRayleighDistribution..::.GenerationMethod _ ) |
| Visual C++ |
|---|
public: DoubleRandomRayleighDistribution( double displacement, double scale, DoubleRandomRayleighDistribution..::.GenerationMethod method ) |
Parameters
- displacement
- Type: System..::.Double
Displacement.
- scale
- Type: System..::.Double
Scale factor.
- method
- Type: CenterSpace.NMath.Core..::.DoubleRandomRayleighDistribution..::.GenerationMethod
The generation method to use.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the scale factor is not greater than 0. |