functionRNG_Weyl
Number generator based on the Equidistribution Theorem (Weyl's criterion), WARNING: Not random!
Extends from Noise.Utilities.Interfaces.SampleFreeRNG (The interface for sample free random number generators).
Information
This is not actually a random number generator. Weyl's theorem guarantees a very uniform distribution, but the generated signal is highly correlated.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Time | instance (from InputOutput) | The current time for an arithmetic random number generator | |
| Integer | states_in (from InputOutput) | The discrete states for a recursive random number generator | |
| Real | y0 | sqrt(4345543) - 1 | An irrational number used to yield the pseudo-random number rand_i = i*yo mod 1 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | rand (from InputOutput) | The random number with a uniform distribution on the interval [1,0] | |
| Integer | states_out (from InputOutput) | The new states of a recursive random number generator |
Revisions
Developed 2014 at the DLR Institute of System Dynamics and Control