Constructs a FloatVector instance from a random number generator.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public FloatVector( int length, RandomNumberStream rngStream, IRandomNumberDistribution<float> distribution ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ length As Integer, _ rngStream As RandomNumberStream, _ distribution As IRandomNumberDistribution(Of Single) _ ) |
| Visual C++ |
|---|
public: FloatVector( int length, RandomNumberStream^ rngStream, IRandomNumberDistribution<float>^ distribution ) |
Parameters
- length
- Type: System..::.Int32
Length of the vector.
- rngStream
- Type: CenterSpace.NMath.Core..::.RandomNumberStream
Random number stream.
- distribution
- Type: CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(Single>)>)
Distribution for random numbers.