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

source

default-format-columnsclj/s

source

default-format-id-fnclj/s

source

format-statsclj/s

(format-stats clock-total
              id-stats
              {:keys [columns sort-fn format-id-fn max-id-width]
               :as opts
               :or {columns default-format-columns
                    sort-fn (fn [m] (get m :sum))
                    format-id-fn default-format-id-fn}})

Returns a formatted table string for given {<id> <stats>} map. Assumes nanosecond clock, stats based on profiling id'd nanosecond times.

Returns a formatted table string for given `{<id> <stats>}` map.
Assumes nanosecond clock, stats based on profiling id'd nanosecond times.
sourceraw docstring

get-max-id-widthclj/s

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

long-percentilesclj/s

(long-percentiles longs)

Returns ?[min p25 p50 p75 p90 p95 p99 max]

Returns ?[min p25 p50 p75 p90 p95 p99 max]
sourceraw docstring

longs-classclj

source

merge-statsclj/s

(merge-stats m0 m1)

(merge-stats (stats c0) (stats c1)) is a basic approximation of (stats (into c0 c1))).

`(merge-stats (stats c0) (stats c1))` is a basic approximation of `(stats (into c0 c1)))`.
sourceraw docstring

min-maxclj/s

(min-max longs)

Returns ?[<min> <max>]

Returns ?[<min> <max>]
sourceraw docstring

MinMaxcljs

source

sort-longsclj/s

(sort-longs longs)
source

sorted-longs?clj/s

(sorted-longs? x)
source

SortedLongscljs

source

statsclj/s

(stats longs)

Given a collection of longs, returns map with keys: #{:n :min :max :sum :mean :mad-sum :mad :p25 :p50 :p75 :p90 :p95 :p99}, or nil if collection is empty.

Given a collection of longs, returns map with keys:
#{:n :min :max :sum :mean :mad-sum :mad :p25 :p50 :p75 :p90 :p95 :p99}, or nil
if collection is empty.
sourceraw docstring

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

× close