| SobolQuasiRandomGenerator(Int32, Int32) Constructor |
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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public SobolQuasiRandomGenerator(
int numDimensions,
int[,] initialDirectionNumbers
)
Public Sub New (
numDimensions As Integer,
initialDirectionNumbers As Integer(,)
)
public:
SobolQuasiRandomGenerator(
int numDimensions,
array<int,2>^ initialDirectionNumbers
)
new :
numDimensions : int *
initialDirectionNumbers : int[,] -> SobolQuasiRandomGenerator
Parameters
- numDimensions Int32
- The number of dimensions.
- initialDirectionNumbers Int32
- 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 equal to 32.
Exceptions Exception | Condition |
---|
InvalidArgumentException | Thrown 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