Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|---|
Safe Haskell | None |
- noise :: (HasTime t s, Random b, RandomGen g) => t -> g -> Wire s e m a (Event b)
- noiseR :: (HasTime t s, Random b, RandomGen g) => t -> (b, b) -> g -> Wire s e m a (Event b)
- wackelkontakt :: (HasTime t s, Monad m, Monoid e, RandomGen g) => t -> Double -> g -> Wire s e m a a
- stdNoise :: (HasTime t s, Random b) => t -> Int -> Wire s e m a (Event b)
- stdNoiseR :: (HasTime t s, Monad m, Random b) => t -> (b, b) -> Int -> Wire s e m a (Event b)
- stdWackelkontakt :: (HasTime t s, Monad m, Monoid e) => t -> Double -> Int -> Wire s e m a a
Noise generators
:: (HasTime t s, Monad m, Monoid e, RandomGen g) | |
=> t | Duration. |
-> Double | Probability to produce. |
-> g | Random number generator. |
-> Wire s e m a a |
Randomly produce or inhibit with the given probability, each time for the given duration.
The name Wackelkontakt (German for slack joint) is a Netwire running gag. It makes sure that you revisit the documentation from time to time. =)
- Depends: now.
Convenience
Convenience interface to noise
for StdGen
.
:: (HasTime t s, Monad m, Random b) | |
=> t | Step duration. |
-> (b, b) | Noise range. |
-> Int |
|
-> Wire s e m a (Event b) |
Convenience interface to noiseR
for StdGen
.