blockTruncatedNormalNoise
Extends from Modelica.Blocks.Interfaces.PartialNoise (Partial noise generator).
Information
A summary of the common properties of the noise blocks is provided in the documentation of package Blocks.Noise. This TruncatedNormalNoise block generates reproducible, random noise at its output according to a truncated normal distribution. This means that normally distributed random values are truncated to the band y_min ... y_max. Measurement noise has often this distribution form. By default, the standard parameters of the truncated normal distribution are derived from y_min ... y_max:
mean value = (y_max + y_min)/2,
standard deviation = (y_max - y_min)/6 (= 99.7 % of the non-truncated normal distribution are within y_min ... y_max).
For an example see Examples.Noise.Distributions. By default, two or more instances produce different, uncorrelated noise at the same time instant. The block can only be used if on the same or a higher hierarchical level, model Blocks.Noise.GlobalSeed is dragged to provide global settings for all instances.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Period | samplePeriod (from PartialNoise) | Period for sampling the raw random numbers | |
| Integer | localSeed (from PartialNoise) | The actual localSeed | |
| Real | y_min | Lower limit of y | |
| Real | y_max | Upper limit of y | |
| Advanced › Noise generation | |||
| Boolean | enableNoise (from PartialNoise) | globalSeed.enableNoise | = true: y = noise, otherwise y = y_off |
| Real | y_off (from PartialNoise) | 0.0 | Sets y = y_off if enableNoise=false (or time<startTime, see below) |
| Real | mu | (y_max + y_min)/2 | Expectation (mean) value of the normal distribution |
| Real | sigma | (y_max - y_min)/6 | Standard deviation of the normal distribution |
| Advanced › Initialization | |||
| Boolean | useGlobalSeed (from PartialNoise) | true | = true: use global seed, otherwise ignore it |
| Boolean | useAutomaticLocalSeed (from PartialNoise) | true | = true: use automatic local seed, otherwise use fixedLocalSeed |
| Integer | fixedLocalSeed (from PartialNoise) | 1 | Local seed (any Integer number) |
| SI.Time | startTime (from PartialNoise) | 0.0 | Start time for sampling the raw random numbers |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) | Connector of Real output signal |
Revisions
| Date | Description | ||
|---|---|---|---|
| June 22, 2015 |
|