aivika-transformers-4.5: Transformers for the Aivika simulation library

Simulation.Aivika.Trans.Stream.Random

Contents

Description

Tested with: GHC 8.0.1

This module defines random streams of events, which are useful for describing the input of the model.

Synopsis

# Stream of Random Events

Arguments

 :: MonadDES m => Parameter m (Double, a) compute a pair of the delay and event of type a -> Stream m (Arrival a) a stream of delayed events

Return a sream of random events that arrive with the specified delay.

Arguments

 :: MonadDES m => Double the minimum delay -> Double the maximum delay -> Stream m (Arrival Double) the stream of random events with the delays generated

Create a new stream with delays distributed uniformly.

Arguments

 :: MonadDES m => Int the minimum delay -> Int the maximum delay -> Stream m (Arrival Int) the stream of random events with the delays generated

Create a new stream with integer delays distributed uniformly.

Arguments

 :: MonadDES m => Double the minimum delay -> Double the median of the delay -> Double the maximum delay -> Stream m (Arrival Double) the stream of random events with the delays generated

Create a new stream with random delays having the triangular distribution.

Arguments

 :: MonadDES m => Double the mean delay -> Double the delay deviation -> Stream m (Arrival Double) the stream of random events with the delays generated

Create a new stream with delays distributed normally.

Arguments

 :: MonadDES m => Double the mean of a normal distribution which this distribution is derived from -> Double the deviation of a normal distribution which this distribution is derived from -> Stream m (Arrival Double) the stream of random events with the delays generated

Create a new stream with random delays having the lognormal distribution.

Arguments

 :: MonadDES m => Double the mean delay (the reciprocal of the rate) -> Stream m (Arrival Double) the stream of random events with the delays generated

Return a new stream with delays distibuted exponentially with the specified mean (the reciprocal of the rate).

Arguments

 :: MonadDES m => Double the scale (the reciprocal of the rate) -> Int the shape -> Stream m (Arrival Double) the stream of random events with the delays generated

Return a new stream with delays having the Erlang distribution with the specified scale (the reciprocal of the rate) and shape parameters.

Arguments

 :: MonadDES m => Double the mean delay -> Stream m (Arrival Int) the stream of random events with the delays generated

Return a new stream with delays having the Poisson distribution with the specified mean.

Arguments

 :: MonadDES m => Double the probability -> Int the number of trials -> Stream m (Arrival Int) the stream of random events with the delays generated

Return a new stream with delays having the binomial distribution with the specified probability and trials.

Arguments

 :: MonadDES m => Double the shape -> Double the scale (a reciprocal of the rate) -> Stream m (Arrival Double) the stream of random events with the delays generated

Return a new stream with random delays having the Gamma distribution by the specified shape and scale.

Arguments

 :: MonadDES m => Double the shape (alpha) -> Double the shape (beta) -> Stream m (Arrival Double) the stream of random events with the delays generated

Return a new stream with random delays having the Beta distribution by the specified shape parameters (alpha and beta).

Arguments

 :: MonadDES m => Double shape -> Double scale -> Stream m (Arrival Double) the stream of random events with the delays generated

Return a new stream with random delays having the Weibull distribution by the specified shape and scale.

Arguments

 :: MonadDES m => DiscretePDF Double the discrete probability density function -> Stream m (Arrival Double) the stream of random events with the delays generated

Return a new stream with random delays having the specified discrete distribution.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7278472,"math_prob":0.84609383,"size":5185,"snap":"2019-51-2020-05","text_gpt3_token_len":1195,"char_repetition_ratio":0.24203822,"word_repetition_ratio":0.52920145,"special_character_ratio":0.24378014,"punctuation_ratio":0.10123457,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9540871,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-26T06:51:20Z\",\"WARC-Record-ID\":\"<urn:uuid:a0ddad52-0717-411b-8636-75595b8f420c>\",\"Content-Length\":\"27003\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b953440e-c4e5-4f08-993a-71fd9837fd58>\",\"WARC-Concurrent-To\":\"<urn:uuid:e81289bc-fbe0-4adf-85d1-827a1627361b>\",\"WARC-IP-Address\":\"151.101.248.68\",\"WARC-Target-URI\":\"http://hackage.haskell.org/package/aivika-transformers-4.5/candidate/docs/Simulation-Aivika-Trans-Stream-Random.html\",\"WARC-Payload-Digest\":\"sha1:X6EAYUGFO6WOX4W6LMCDYGDOKVAXCLBT\",\"WARC-Block-Digest\":\"sha1:YLRRJIM4GZFBNT5OO4Q3GMHR56UV3ULE\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579251687725.76_warc_CC-MAIN-20200126043644-20200126073644-00178.warc.gz\"}"}