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:

UniformNoiseXorshift64star_Model.png     UniformNoiseXorshift64star_Result.png
model simulation result

Parameters

TypeNameDefaultDescription
RealnoiseMax (from PartialNoise)0.1Upper limit of noise band
RealnoiseMin (from PartialNoise)-noiseMaxLower limit of noise band
IntegerglobalSeed30020Global seed to initialize random number generator
IntegerlocalSeed614657Local seed to initialize random number generator

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu (from PartialClockedSISO)Connector of clocked, Real input signal
Modelica.Blocks.Interfaces.RealOutputy (from PartialClockedSISO)Connector of clocked, Real output signal

Components

TypeNameDefaultDescription
Realr64Random number generated with Xorshift64star