netwire-4.0.2: Flexible wire arrows for FRP

MaintainerErtugrul Soeylemez <es@ertes.de>
Safe HaskellNone

Control.Wire.Prefab.Noise

Contents

Description

Various noise generators.

Synopsis

Pure random noise

noiseSource

Arguments

:: (Random b, RandomGen g) 
=> g

Initial random number generator.

-> Wire e m a b 

Pure noise generator.

noiseRSource

Arguments

:: (Random b, RandomGen g) 
=> g

Initial random number generator.

-> Wire e m (b, b) b 

Pure ranged noise generator.

  • Depends: current instant.

wackelkontaktSource

Arguments

:: (Monoid e, RandomGen g) 
=> Double

Occurrence probability.

-> g

Initial random number generator.

-> Event e m a 

Event: Occurs randomly with the given probability.

  • Inhibits: wackelkontaktM p inhibits with probability 1 - p.

Effectful random noise

noiseM :: (MonadRandom m, Random b) => Wire e m a bSource

Noise generator.

noiseRM :: (MonadRandom m, Random b) => Wire e m (b, b) bSource

Ranged noise generator.

  • Depends: current instant.

wackelkontaktMSource

Arguments

:: (MonadRandom m, Monoid e) 
=> Double

Occurrence probability.

-> Event e m a 

Event: Occurs randomly with the given probability.

  • Inhibits: wackelkontaktM p inhibits with probability 1 - p.