Liking cljdoc? Tell your friends :D

com.yetanalytics.datasim.timeseries


arma-seqclj

(arma-seq {:keys [seed] :as arma-model})
(arma-seq {:keys [std phi theta c] :as arma-model :or {phi [] theta []}}
          prev-value
          prev-epsilon
          rng)

Given arma params, return an infinite lazy seq of values

Given arma params, return an infinite lazy seq of values
sourceraw docstring

arma-seq-constclj

(arma-seq-const {:keys [std phi theta c seed rng value epsilon]
                 :as arma-model
                 :or {phi [] theta [] value 0.0 epsilon 0.0}}
                n)

Find the value of a stochastic sequence after n runs with the given model.

Find the value of a stochastic sequence after n runs with the given model.
sourceraw docstring

constant-seqclj

(constant-seq constant)

Return an infinite sequence of the given constant value

Return an infinite sequence of the given constant value
sourceraw docstring

cycle-seqclj

(cycle-seq xs & {:keys [length offset] :or {offset 0 length 0}})

Given a sequence, length and offset, return a seq that cycles forever over a portion of the seq.

Given a sequence, length and offset, return a seq that cycles forever over
a portion of the seq.
sourceraw docstring

interval-seqclj

(interval-seq xs)

Return a seq representing the intervals of the input seq

Return a seq representing the intervals of the input seq
sourceraw docstring

invert-seqclj

(invert-seq xs)

flip vals in a seq from positive to negative or visa versa

flip vals in a seq from positive to negative or visa versa
sourceraw docstring

op-seqclj

(op-seq op seqs)

Perform actions on one or more seqs

Perform actions on one or more seqs
sourceraw docstring

overlap-seqclj

(overlap-seq a
             b
             &
             {:keys [comp-fn extra-stats] :or {comp-fn > extra-stats false}})

NOT USED, but instructive... Given two seqs a and b, for each period where a > b return the T (index) and length of the overlap.

NOT USED, but instructive...
Given two seqs a and b, for each period where a > b return
the T (index) and length of the overlap.
sourceraw docstring

rand-seqclj

(rand-seq &
          {:keys [seed rng val-type gauss-mean gauss-sd]
           :or {val-type :long gauss-mean 0.0 gauss-sd 1.0}})
source

scale-seqclj

(scale-seq xs scale)

Given a seq and a scale, change the number of events to fit the scale

Given a seq and a scale, change the number of events to fit the scale
sourceraw docstring

smooth-seqclj

(smooth-seq xs & {:keys [n] :or {n 2}})
source

sum-seqclj

(sum-seq & seqs)

Add together the values of any number of seqs

Add together the values of any number of seqs
sourceraw docstring

take-sampleclj

(take-sample xs sample-millis & {:keys [from] :or {from :millis}})

Take a sample of sample-millis from a time series. :from denotes the period of xs

Take a sample of sample-millis from a time series.
:from denotes the period of xs
sourceraw docstring

time-seqsclj

(time-seqs &
           {:keys [t-zero sample-n zone] :or {t-zero 0 zone (t/zone-id "UTC")}})

Given a t-zero (simulation start), an upper bound of sample-n milliseconds and an optional local timezone, return a map of useful lazy time sequences.

Given a t-zero (simulation start), an upper bound of sample-n milliseconds
and an optional local timezone, return a map of useful lazy time sequences.
sourceraw docstring

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

× close