Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|---|
Safe Haskell | None |
Various noise generators.
- noise :: (Random b, RandomGen g) => g -> Wire e m a b
- noiseR :: (Random b, RandomGen g) => g -> Wire e m (b, b) b
- wackelkontakt :: (Monoid e, RandomGen g) => Double -> g -> Event e m a
- noiseM :: (MonadRandom m, Random b) => Wire e m a b
- noiseRM :: (MonadRandom m, Random b) => Wire e m (b, b) b
- wackelkontaktM :: (MonadRandom m, Monoid e) => Double -> Event e m a
Pure random noise
Pure noise generator.
Pure ranged noise generator.
- Depends: current instant.
:: (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 probability1 - 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.
:: (MonadRandom m, Monoid e) | |
=> Double | Occurrence probability. |
-> Event e m a |
Event: Occurs randomly with the given probability.
- Inhibits:
wackelkontaktM p
inhibits with probability1 - p
.