Liking cljdoc? Tell your friends :D

taoensso.tukey.impl

Private implementation details.

Private implementation details.
raw docstring

counting-merge-sortclj/s

(counting-merge-sort keyfn xs)
(counting-merge-sort keyfn n-swaps_ v)

Modified merge sort implementation that tracks number of values that needed to be swapped, and returns [<n-swaps> <sorted-xs>] in O(n.log_n).

Modified merge sort implementation that tracks number of values
that needed to be swapped, and returns [<n-swaps> <sorted-xs>] in O(n.log_n).
raw docstring

DoublePaircljs


doubles?clj

(doubles? x)

indexedclj/s

(indexed xs)

[:a :b :c ...] -> {0 :a, 1 :b, 2 :c ...}, useful for distinguishing between duplicate elements in xs.

[:a :b :c ...] -> {0 :a, 1 :b, 2 :c ...},
useful for distinguishing between duplicate elements in `xs`.
raw docstring

is-not-zeroclj/smacro

(is-not-zero ex-msg ex-map x)

is-pclj/s

(is-p x)

is-same-countclj/s

(is-same-count context xs ys)

is-sortedclj/s

(is-sorted x)

kendall-correlation-impl-knightclj/s

(kendall-correlation-impl-knight xys)

Returns {:keys [n_c-n_d n_xy n_yt n_xyt n_p} in O(n.log_n) using Knight's Tau method [R1], [R2].

Returns {:keys [n_c-n_d n_xy n_yt n_xyt n_p} in O(n.log_n)
using Knight's Tau method [R1], [R2].
raw docstring

kendall-correlation-impl-naiveclj/s

(kendall-correlation-impl-naive reduce-combinations xys)

Returns {:keys [n_c-n_d n_xy n_yt n_xyt n_p} in O(n²) using reduce-combinations.

Returns {:keys [n_c-n_d n_xy n_yt n_xyt n_p} in O(n²)
using `reduce-combinations`.
raw docstring

kendall-knight-tied-pair-countclj/s

(kendall-knight-tied-pair-count keyfn sorted-xs)

Given sorted xs, returns the total number of rank ties in all possible [xi xj] combinations, as per Knight's Tau method [R1], [R2].

Given sorted `xs`, returns the total number of rank ties in all possible
[xi xj] combinations, as per Knight's Tau method [R1], [R2].
raw docstring

longs?clj

(longs? x)

pow'clj/s

(pow' base exp)

Auto-promoting Math/pow.

Auto-promoting `Math/pow`.
raw docstring

rand-intsclj/s

(rand-ints n)

For tests

For tests
raw docstring

sorted-doublesclj/s

(sorted-doubles x)

Advanced: returns a SortedDoubles instance for given numerical values, backed by a double array. May be provided to certain utils as a performance optimisation.

Advanced: returns a SortedDoubles instance for given numerical values, backed by
a double array. May be provided to certain utils as a performance optimisation.
raw docstring

sorted-doubles?clj/s

(sorted-doubles? x)

sorted-fixnums?clj/s

(sorted-fixnums? x)

sorted-longsclj/s

(sorted-longs x)

Advanced: returns a SortedLongs instance for given numerical values, backed by a long array. May be provided to certain utils as a performance optimisation.

Advanced: returns a SortedLongs instance for given numerical values, backed by
a long array. May be provided to certain utils as a performance optimisation.
raw docstring

sorted-longs?clj/s

(sorted-longs? x)

sorted-maxclj/s

(sorted-max x)

sorted-medianclj/s

(sorted-median x)

sorted-minclj/s

(sorted-min x)

sorted-percentileclj/s

(sorted-percentile p x)

SortedDoublescljs


SortedLongscljs


vsplitclj/s

(vsplit v)

Splits vector ~evenly into [<left> <right>] sub-vectors in O(1).

Splits vector ~evenly into [<left> <right>] sub-vectors in O(1).
raw docstring

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

× close