pathsim.blocks.rng module
- class pathsim.blocks.rng.RNG(sampling_rate=None)[source]
Bases:
BlockGenerates a random output value beteween -1 and 1 from a uniform distribution.
If no ‘sampling_rate’ (None) is specified, every simulation timestep gets a random value.
- Parameters:
sampling_rate (float, None) – number of random samples per time unit
- reset()[source]
Reset the blocks inputs and outputs and also its internal solver, if the block has a solver instance.
- sample(t)[source]
Sample from a normal distribution after successful timestep.
- Parameters:
t (float) – evaluation time for sampling