functionSeed_MRG
Uses an MRG for seeding
Extends from Utilities.Interfaces.Seed (The basic interface for a seeding function).
Information
This function fills the initial state vector using the MRG random number generator.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | local_seed (from Seed) | 12345 | The local seed to be used for generating initial RNG states |
| Integer | global_seed (from Seed) | 67890 | The global seed to be combined with the local seed |
| Real | real_seed (from Seed) | 1.234 | A Real value to use as a seed for continuous seeding |
| Integer | n (from Seed) | 33 | The number of initial state values to be generated |
| Integer | a | fill(134775813, n) | The multiplier for the linear congruential generator |
| Integer | c | 1 | The increment for abstracting linear congruential generators |
| Integer | m | 2147483629 | The modulus for the multiple recursive generator |
| Integer | k | n | The number times the MRG shall be applied to the initial state vector |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer[n] | states (from Seed) | The generated initial states |
Revisions
Developed 2014 at the DLR Institute of System Dynamics and Control