Liking cljdoc? Tell your friends :D

org.clojars.punit-naik.clj-ml.utils.generic


approximate-decimalclj

(approximate-decimal num)
(approximate-decimal num n)

Given a decimal number num, this function approximates/selects it's value upto n decimal places.

Given a decimal number `num`, this function approximates/selects it's value upto `n` decimal places.
sourceraw docstring

error-decimalclj

(error-decimal n)

Given a precision value as an integer, this function returns the corresponding error value

Given a precision value as an integer, this function returns the corresponding error value
sourceraw docstring

first-n-zerosclj

(first-n-zeros coll)

Given a collection, this function finds the number of zero elements of the collection from the start

Given a collection, this function finds the number of zero elements of the collection from the start
sourceraw docstring

mean-collclj

(mean-coll c)

Calculates the mean of a collection c

Calculates the mean of a collection `c`
sourceraw docstring

rationaliseclj

(rationalise n)

Rationalises a number into a fraction, same as clojure.core/rationalize But this will always return the numerator as is, without the decimal Hence the denominator will be in multiples of 10

Rationalises a number into a fraction, same as `clojure.core/rationalize`
But this will always return the numerator as is, without the decimal
Hence the denominator will be in multiples of 10
sourceraw docstring

replace-nthclj

(replace-nth coll n replacement)

Replaces nth item from coll with replacement

Replaces `n`th item from `coll` with `replacement`
sourceraw docstring

round-decimalclj

(round-decimal num)

Rounds of a decimal based on precision

Rounds of a decimal based on `precision`
sourceraw docstring

shinglesclj

(shingles s n)

Generate shingles out of a string s (could also work with other types of collections) The shingle size is specified by n If s is a very small string (of count less than or equal to 5), just a list of it's individual chars is returned

Generate shingles out of a string `s` (could also work with other types of collections)
The shingle size is specified by `n`
If `s` is a very small string (of count less than or equal to 5),
just a list of it's individual chars is returned
sourceraw docstring

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

× close