Liking cljdoc? Tell your friends :D

std.timeseries.compute


+aggregation-forms+clj


+aggregations+clj


+templates+clj


apply-templateclj

(apply-template [k & rest])

applies the template

(= (apply-template [:s/norm :bench.stats.lag]) (list `/ :bench.stats.lag [:s/max :bench.stats.lag])) => true

applies the template

(= (apply-template [:s/norm :bench.stats.lag])
   (list `/ :bench.stats.lag [:s/max :bench.stats.lag]))
=> true
raw docstring

compileclj

(compile m)

complies a map of expressions

(compile '{:diff (- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag])})

complies a map of expressions

(compile '{:diff (- [:s/norm :bench.stats.time]
                    [:s/norm :bench.stats.lag])})
raw docstring

compile-aggregatesclj

(compile-aggregates aggregates)

compiles the aggregates

(compile-aggregates '{v1 [:s/max :bench.stats.lag]})

compiles the aggregates

(compile-aggregates '{v1 [:s/max :bench.stats.lag]})
raw docstring

compile-formclj

(compile-form form)

compiles the entire form

(compile-form '(- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag]))

compiles the entire form

(compile-form '(- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag]))
raw docstring

compile-keywordclj

(compile-keyword k)

compiles a single keyword

(compile-keyword :bench.stats.lag) => `(get ~'output (keyword "bench.stats.lag"))

compiles a single keyword

(compile-keyword :bench.stats.lag)
=> `(get ~'output (keyword "bench.stats.lag"))
raw docstring

compile-singleclj

(compile-single compute)

complise a single fn form

(eval (compile-single '(- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag]))) => fn?

complise a single fn form

(eval (compile-single '(- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag])))
=> fn?
raw docstring

computeclj

(compute arr exprs)

computes additional values given array

(-> (compute [{:start 10 :output.value 1} {:start 11 :output.value 4} {:start 12 :output.value 1} {:start 13 :output.value 6} {:start 14 :output.value 10.1}] {:t '(* :start 100000000) :t0 [:s/adj :t] :t1 [:s/inv :t0] :output.norm [:s/norm :output.value]}) first) => {:start 10, :output.value 1, :t 1000000000, :t0 0, :t1 400000000, :output.norm 0.09900990099009901}

computes additional values given array

(-> (compute [{:start 10 :output.value 1}
              {:start 11 :output.value 4}
              {:start 12 :output.value 1}
              {:start 13 :output.value 6}
              {:start 14 :output.value 10.1}]
             {:t            '(* :start 100000000)
              :t0           [:s/adj :t]
              :t1           [:s/inv :t0]
             :output.norm  [:s/norm :output.value]})
    first)
=> {:start 10, :output.value 1, :t 1000000000, :t0 0, :t1 400000000, :output.norm 0.09900990099009901}
raw docstring

key-orderclj

(key-order m)

(key-order {:output.norm [:s/norm :output.value] :t1 [:s/inv :t0] :t0 [:s/adj :t] :t '(* :start 100000000)}) => [:t :t0 :t1 :output.norm]

(key-order {:output.norm  [:s/norm :output.value]
            :t1           [:s/inv :t0]
            :t0           [:s/adj :t]
            :t            '(* :start 100000000)})
=> [:t :t0 :t1 :output.norm]
raw docstring

key-referencesclj

(key-references m)

finds all references for the expr map

(key-references {:t '(* :start 100000000) :t0 [:s/adj :t] :t1 [:s/inv :t0] :output.norm [:s/norm :output.value]}) => {:t #{}, :t0 #{:t}, :t1 #{:t0}, :output.norm #{}}

finds all references for the expr map

(key-references {:t            '(* :start 100000000)
                 :t0           [:s/adj :t]
                 :t1           [:s/inv :t0]
                 :output.norm  [:s/norm :output.value]})
=> {:t #{}, :t0 #{:t}, :t1 #{:t0}, :output.norm #{}}
raw docstring

max-fnclj

(max-fn arr)

max function accepting array

max function accepting array
raw docstring

middle-fnclj

(middle-fn arr)

middling function

(middle-fn [1 2 3]) => 2

middling function

(middle-fn [1 2 3])
=> 2
raw docstring

min-fnclj

(min-fn arr)

min function accepting array

min function accepting array
raw docstring

range-fnclj

(range-fn arr)

range function accepting array

range function accepting array
raw docstring

template?clj

(template? [k & rest])

checks if vector is a template

(template? [:s/norm 1]) => true

checks if vector is a template

(template? [:s/norm 1])
=> true
raw docstring

wrap-not-nilclj

(wrap-not-nil f)

ensures no null values

ensures no null values
raw docstring

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

× close