Fills an array with quasirandom numbers from the specified
distribution. The quasirandom numbers, which are tuples of length
Dimension are layed out linearly in the array r.
If Dimension = n, then the first n-dimensional quasirandom
point occupies r[0], r[1],...,r[n-1], the second occupies
r[n], r[n+1],...,r[2n-1], and so on.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public void Fill<T>( IRandomNumberDistribution<T> distribution, T[] r ) |
| Visual Basic (Declaration) |
|---|
Public Sub Fill(Of T) ( _ distribution As IRandomNumberDistribution(Of T), _ r As T() _ ) |
| Visual C++ |
|---|
public: generic<typename T> void Fill( IRandomNumberDistribution<T>^ distribution, array<T>^ r ) |
Parameters
- distribution
- Type: CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(T>)>)
The desired probability distribution for the generated quasirandom numbers.
- r
- Type: array<
T
>[]()[]
The array to be filled. Note that the k quasirandom points are desired, the size of r should be Dimension*k
Type Parameters
- T
- Data type of the numbers.
Remarks
This function is most useful when Dimension = 1.
For Dimension greater than 1, the routines that place the
quasirandom points in matrices is more convenient.