Liking cljdoc? Tell your friends :D

taoensso.tufte.stats

Basic stats utils. Private, subject to change.

Basic stats utils. Private, subject to change.
raw docstring

all-format-columnsclj/s


default-format-columnsclj/s


default-format-id-fnclj/s


get-max-id-widthclj/s

(get-max-id-width id-sstats*
                  {:keys [format-id-fn]
                   :or {format-id-fn default-format-id-fn}})

sstatsclj/s

(sstats nums)

Given a coll of numbers, returns a new mergeable ?SummaryStats with: (deref ss) => {:keys [n min max p25 ... p99 mean var mad]}

See also summary-stats-merge.

Given a coll of numbers, returns a new mergeable ?SummaryStats with:
(deref ss) => {:keys [n min max p25 ... p99 mean var mad]}

See also `summary-stats-merge`.
raw docstring

sstats-formatclj/s

(sstats-format clock-total
               id-sstats*
               {:keys [columns sort-fn format-id-fn max-id-width]
                :as opts
                :or {columns default-format-columns
                     sort-fn (fn [ss] (get (enc/force-ref ss) :sum))
                     format-id-fn default-format-id-fn}})

Given {<id> <sstats>} or {<id> <sstats-map>}, returns a formatted table string. Assumes nanosecond clock, and stats based on profiling id'd nanosecond times.

Given {<id> <sstats>} or {<id> <sstats-map>}, returns a formatted table
string. Assumes nanosecond clock, and stats based on profiling id'd
nanosecond times.
raw docstring

sstats-mergeclj/s

(sstats-merge ss1)
(sstats-merge ss1 ss2)

Given one or more SummaryStats, returns a new ?SummaryStats with: (summary-stats-merge (summary-stats nums1) (summary-stats nums2))

an approximatation of (summary-stats (merge nums1 nums2))

Useful when you want summary stats for a large coll of numbers for which it would be infeasible/expensive to keep all numbers for accurate merging.

Given one or more SummaryStats, returns a new ?SummaryStats with:
  (summary-stats-merge
     (summary-stats nums1)
     (summary-stats nums2))

  an approximatation of (summary-stats (merge nums1 nums2))

Useful when you want summary stats for a large coll of numbers for which
it would be infeasible/expensive to keep all numbers for accurate merging.
raw docstring

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

× close