Liking cljdoc? Tell your friends :D

com.yetanalytics.datasim.model.periods


add-periodsclj

(add-periods date-time rng periods)

Add a random amount of milliseonds to date-time based on the first map of valid parameter map in periods. A valid map either has no time bounds or bounds that satisfy date-time. The millis amount is an exponentially distributed random variable with period parameters :mean and :min. The generated sequence that uses these periodic date-times will thus occur as a Poisson random process.

Add a random amount of milliseonds to `date-time` based on the first map of
valid parameter map in `periods`. A valid map either has no time bounds or
bounds that satisfy `date-time`. The millis amount is an exponentially
distributed random variable with `period` parameters `:mean` and `:min`.
The generated sequence that uses these periodic date-times will thus occur
as a Poisson random process.
sourceraw docstring

convert-periodsclj

(convert-periods periods)
source

ms-per-dayclj

source

ms-per-hourclj

source

ms-per-minuteclj

source

ms-per-secondclj

source

ms-per-weekclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close