| QuasiRandomNumberGeneratorNextT(IRandomNumberDistributionT, Int32) Method |
Creates an array filled 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: 7.4
Syntax public T[] Next<T>(
IRandomNumberDistribution<T> distribution,
int numSamplePoints
)
Public Function Next(Of T) (
distribution As IRandomNumberDistribution(Of T),
numSamplePoints As Integer
) As T()
public:
generic<typename T>
array<T>^ Next(
IRandomNumberDistribution<T>^ distribution,
int numSamplePoints
)
member Next :
distribution : IRandomNumberDistribution<'T> *
numSamplePoints : int -> 'T[]
Parameters
- distribution IRandomNumberDistributionT
- The desired probability distribution
for the generated quasirandom numbers.
- numSamplePoints Int32
- The desired number of quasirandom points.
Type Parameters
- T
- Data type of the numbers.
Return Value
TArray of length
numSamplePoints * Dimension.
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.
See Also