Constructor for G05State class
Syntax
C# |
---|
public G05State( int genid, int subid, int[] seed, out int ifail ) |
Visual Basic |
---|
Public Sub New ( _ genid As Integer, _ subid As Integer, _ seed As Integer(), _ <OutAttribute> ByRef ifail As Integer _ ) |
Visual C++ |
---|
public: G05State( int genid, int subid, array<int>^ seed, [OutAttribute] int% ifail ) |
F# |
---|
new : genid : int * subid : int * seed : int[] * ifail : int byref -> G05State |
Parameters
- genid
- Type: System..::..Int32On entry: must contain the type of base generator to use.
- NAG basic generator.
- Wichmann Hill I generator.
- Mersenne Twister.
- Wichmann Hill II generator.
- ACORN generator.
- L'Ecuyer MRG32k3a generator.
See the G05 class for details of each of the base generators.Constraint: , , , , or .
- subid
- Type: System..::..Int32On entry: if , subid indicates which of the sub-generators to use. In this case, the sub-generator is used.If , subid indicates the values of and to use, where is the order of the generator, and controls the size of the modulus, , with . If , the default values of and are used, otherwise values for and are calculated from the formula, .If and the range of the generator is set to , otherwise the range is set to ; in this case the sequence is identical to the implementation of MRG32k3a in TestU01 (see L'Ecuyer and Simard (2002)) for identical seeds.
- seed
- Type: array<System..::..Int32>[]()[][]An array of size [lseed]On entry: the initial (seed) values for the selected base generator. The number of initial values required varies with each of the base generators.If , one seed is required.If , four seeds are required.If , seeds are required.If , four seeds are required.If , seeds are required, where and are defined by subid. For the ACORN generator it is recommended that an odd value is used for .If , six seeds are required.If insufficient seeds are provided then the first values supplied in seed are used and the remaining values are randomly generated using the NAG basic generator. In such cases the NAG basic generator is initialized using the value supplied in .Constraint: , for .
- ifail
- Type: System..::..Int32%On exit: or unless the method detects an error or a warning has been flagged (see [Error Indicators and Warnings]).