(all-permutations things)
(build-trie seed & kvs)
(compare-by & key-cmp-pairs)
(fisher-p-value w x y z)
Fisher exact test. | Outcome 1 | Outcome 2 | Total G1 | w | x | w+x G2 | y | z | y+z Total | w+y | x+z | w+x+y+z
Fisher exact test. | Outcome 1 | Outcome 2 | Total G1 | w | x | w+x G2 | y | z | y+z Total | w+y | x+z | w+x+y+z
(flatten-map form separator)
(flatten-map form separator pre)
Flatten a map of maps, joining keys with separator. From http://stackoverflow.com/questions/17901933/flattening-a-map-by-join-the-keys
Flatten a map of maps, joining keys with separator. From http://stackoverflow.com/questions/17901933/flattening-a-map-by-join-the-keys
(gpg-decrypt file)
(log-factorial)
(log-factorial n)
log-factorial function that memoizes results in an atom cache. Called without any args it resets its cache.
log-factorial function that memoizes results in an atom cache. Called without any args it resets its cache.
(luhn? n)
(map-fn-key-set map fun)
Apply fun to a map then make a map of first key with set of second key
Apply fun to a map then make a map of first key with set of second key
(map-or f c1 c2)
(map-or f c1 c2 c3)
Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by applying f to the set of second items in each coll. Different to map, it continues until all of the colls are exhausted. Any missing items in other colls are treated as nil values. Function f should accept number-of-colls arguments.
Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by applying f to the set of second items in each coll. Different to map, it continues until all of the colls are exhausted. Any missing items in other colls are treated as nil values. Function f should accept number-of-colls arguments.
(map-rev-2-keys map)
Reverse two levels of keys of a map
Reverse two levels of keys of a map
(nan? x)
(prefix-match target trie)
(redir filename & body)
Redirect out to filename and evaluate body
Redirect *out* to filename and evaluate body
(starts-with-ignore-case? s prefix)
True if string s starts with prefix ignoring case.
True if string s starts with prefix ignoring case.
(string-splice target new offset)
(string-splice target new offset length)
Create a new string with the old substring replaced by a new substring. Given three arguments, replace a portion of the old string at the given offset equal to the length of the replacement. The resulting string will be the same length as the original.
Create a new string with the old substring replaced by a new substring. Given three arguments, replace a portion of the old string at the given offset equal to the length of the replacement. The resulting string will be the same length as the original.
(sum-second pair-seq)
Sum the second values of a sequence of pairs (eg, a vector of pairs)
Sum the second values of a sequence of pairs (eg, a vector of pairs)
(sum-vals pair-seq)
Sum the values of a sequence of pairs (eg, a map or vector of pairs)
Sum the values of a sequence of pairs (eg, a map or vector of pairs)
(version-compare v1 v2)
Compare two numeric version strings with elements separated by dots.
Compare two numeric version strings with elements separated by dots.
(z-score val & [{:keys [mean sd] :or {mean 0 sd 1}}])
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close