netwire-3.1.0: Fast generic automaton arrow transformer for AFRP

MaintainerErtugrul Soeylemez <es@ertes.de>

Control.Wire.Prefab.Random

Contents

Description

Wires for generating random noise.

Synopsis

Random noise

noise :: (WRandom >~, Random b) => Wire e >~ a bSource

Generate random noise.

noiseR :: (WRandom >~, Random b) => Wire e >~ (b, b) bSource

Generate random noise in a certain range given by the input signal.

  • Depends: Current instant.

Specific types

noiseF :: WRandom >~ => Wire e >~ a DoubleSource

Generate random noise in range 0 <= x < 1.

noiseF1 :: (Arrow (Wire e >~), WRandom >~) => Wire e >~ a DoubleSource

Generate random noise in range -1 <= x < 1.

wackelkontakt :: WRandom >~ => Wire e >~ Double BoolSource

Generate a random boolean, where the input signal is the probability to be True.

  • Depends: Current instant.