Initializes base class properties for a given type of quasi-random number generator.

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

Syntax

C#
public QuasiRandomNumberGenerator(
	RandomNumberStream..::.BasicRandGenType generatorType,
	int numDimensions,
	int userPolynomialsFlag,
	BitArray[] polynomials
)
Visual Basic (Declaration)
Public Sub New ( _
	generatorType As RandomNumberStream..::.BasicRandGenType, _
	numDimensions As Integer, _
	userPolynomialsFlag As Integer, _
	polynomials As BitArray() _
)
Visual C++
public:
QuasiRandomNumberGenerator(
	RandomNumberStream..::.BasicRandGenType generatorType, 
	int numDimensions, 
	int userPolynomialsFlag, 
	array<BitArray^>^ polynomials
)

Parameters

generatorType
Type: CenterSpace.NMath.Core..::.RandomNumberStream..::.BasicRandGenType
The type of generator.
numDimensions
Type: System..::.Int32
Random vectors of this dimension are to be generated.
userPolynomialsFlag
Type: System..::.Int32
VSL flag in parameters array indicating that user defined polynomials are being used.
polynomials
Type: array< System.Collections..::.BitArray >[]()[]
If the generator requires a set of polynomials over the field Z2 (finite field of integers modulo 2), the are specified here as an array of polynomial coefficients. Since the polynomial coefficients may only be either 0 or 1, they may be specified as a bit array beginning with the leading coefficient at index 0.

Examples

The polynomial x^3 + x + 1 coefficents are specified as [1 0 1 1]. The BitArray representing this polynomial may be constructed as BitArray p = new BitArray( new bool[] { true, false, true, true } );

See Also