blockUniformNoiseXorshift64star
Add band-limited uniform noise based on a xorshift64* number generator
Extends from Clocked.RealSignals.Interfaces.PartialNoise (Interface for SISO blocks with Real signals that add noise to the signal).
Information
This block adds uniformly distributed noise in the range noiseMin … noiseMax to the clocked Real input signal and provides the sum as clocked Real output signal.
It is based on the xorshift64* algorithm. For more details, see the documentation to Xorshift64star.
Example
The following
example
samples zero signal with a periodic clock of 20 ms period, and adds
noise in the range from -0.1 … 0.1:
![]() |
![]() |
|
| model | simulation result |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | noiseMax (from PartialNoise) | 0.1 | Upper limit of noise band |
| Real | noiseMin (from PartialNoise) | -noiseMax | Lower limit of noise band |
| Integer | globalSeed | 30020 | Global seed to initialize random number generator |
| Integer | localSeed | 614657 | Local seed to initialize random number generator |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u (from PartialClockedSISO) | Connector of clocked, Real input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y (from PartialClockedSISO) | Connector of clocked, Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | r64 | Random number generated with Xorshift64star |

