Constructs a SobolQuasiRandomGenerator for generating quasi-random points in n-dimensioal space. The resulting generator is initialized with the given direction numbers.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public SobolQuasiRandomGenerator(
	int numDimensions,
	int[,] initialDirectionNumbers
)
Visual Basic (Declaration)
Public Sub New ( _
	numDimensions As Integer, _
	initialDirectionNumbers As Integer(,) _
)
Visual C++
public:
SobolQuasiRandomGenerator(
	int numDimensions, 
	array<int,2>^ initialDirectionNumbers
)

Parameters

numDimensions
Type: System..::.Int32
The number of dimensions.
initialDirectionNumbers
Type: array< System..::.Int32 ,2>[,](,)[,]
numDimension x 32Array of initial direction numbers used to initialize the generator. In the initial direction numbers array, the ith row corresponds with the ith dimension. The number of rows in the array initialDirectionNumbers, must be equal to numDimensions or numDimensions - 1. If the number of rows is one less than the number of dimensions the direction numbers for the first dimension will be initialized with a default values. The number of columns in the initialDirectionNumbers array must be eqaul to 32.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the number of dimensions is zero or negative or if the number of rows in the array initialDirectionNumbers is not equal to numDimensions or numDimensions - 1, or if the number of columns in initialDirectionNumbers is not equal to 32.

See Also