Safe Haskell | None |
---|---|
Language | Haskell2010 |
- poissonLossyFrom :: (RandomGen g, MonadWidget t m) => g -> Double -> UTCTime -> Event t a -> m (Event t TickInfo)
- poissonLossy :: (RandomGen g, MonadWidget t m) => g -> Double -> UTCTime -> m (Event t TickInfo)
- inhomogeneousPoissonFrom :: (RandomGen g, MonadWidget t m) => g -> Behavior t Double -> Double -> UTCTime -> Event t a -> m (Event t TickInfo)
- inhomogeneousPoisson :: (RandomGen g, MonadWidget t m) => g -> Behavior t Double -> Double -> UTCTime -> m (Event t TickInfo)
Documentation
:: (RandomGen g, MonadWidget t m) | |
=> g | |
-> Double | Poisson event rate (Hz) |
-> UTCTime | Baseline time for events |
-> Event t a | Event that starts a tick generation thread. Usually you want this to be something like the result of getPostBuild that only fires once. But there could be uses for starting multiple timer threads. Start sending events in response to the event parameter. |
-> m (Event t TickInfo) |
Send events with Poisson timing with the given basis and rate Each occurence of the resulting event will contain the index of the current interval, with 0 representing the basis time
:: (RandomGen g, MonadWidget t m) | |
=> g | |
-> Double | Poisson event rate (Hz) |
-> UTCTime | Baseline time for events |
-> m (Event t TickInfo) |
Send events with Poisson timing with the given basis and rate Each occurence of the resulting event will contain the index of the current interval, with 0 representing the basis time. Automatically begin sending events when the DOM is built
inhomogeneousPoissonFrom :: (RandomGen g, MonadWidget t m) => g -> Behavior t Double -> Double -> UTCTime -> Event t a -> m (Event t TickInfo) Source
Send events with inhomogeneous Poisson timing with the given basis and variable rate. Provide a maxRate that you expect to support.
inhomogeneousPoisson :: (RandomGen g, MonadWidget t m) => g -> Behavior t Double -> Double -> UTCTime -> m (Event t TickInfo) Source
Send events with inhomogeneous Poisson timing with the given basis and variable rate. Provide a maxRate that you expect to support