Basic stats utils. Private, subject to change.
Basic stats utils. Private, subject to change.
(get-max-id-width id-sstats*
{:keys [format-id-fn]
:or {format-id-fn default-format-id-fn}})
(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`.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close