netwire-2.0.1: Generic automaton arrow transformer and useful tools

MaintainerErtugrul Soeylemez <es@ertes.de>

Control.Wire.Prefab.Random

Contents

Description

Wires for generating random noise.

Synopsis

Random noise

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

Generate random noise.

noiseR :: (ArrowRandom >~, 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 :: ArrowRandom >~ => Wire e >~ a DoubleSource

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

noiseF1 :: ArrowRandom >~ => Wire e >~ a DoubleSource

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

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

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

  • Depends: Current instant.