Liking cljdoc? Tell your friends :D

somekit.vector


averagecljs

(average coll)

return average of collection as vector

return average of collection as vector
sourceraw docstring

but-firstcljs

(but-first vector)

rest of vector

rest of vector
sourceraw docstring

dx->xcljs

(dx->x start list)
source

indexedcljs

(indexed coll)

pairs each element in a collection as an indexed tuple and return as vector

pairs each element in a collection as
an indexed tuple and return as vector
sourceraw docstring

mat-transcljs

(mat-trans mat)

Rotates an ND matrix (vec of vecs)

Rotates an ND matrix (vec of vecs)
sourceraw docstring

normalizecljs

(normalize list)
source

of3cljs

(of3 value)

create a vector of size 3 with value

create a vector of size 3 with value
sourceraw docstring

pad-endcljs

(pad-end vector value)
(pad-end vector value pad-size)

pads end of vector with value and pad size

pads end of vector with value and pad size
sourceraw docstring

pad-endscljs

(pad-ends vector value)
(pad-ends vector value pad-size)

pads ends of vector with value and pad size

pads ends of vector with value and pad size
sourceraw docstring

pad-startcljs

(pad-start vector value)
(pad-start vector value pad-size)

pads start of vector with value and pad size

pads start of vector with value and pad size
sourceraw docstring

pad-wrapcljs

(pad-wrap vector)

pads start of vector with end and end of vector with start

pads start of vector with end and end of vector with start
sourceraw docstring

randomcljs

(random n)

random vector generator Arguments:

  • size n Returns:
  • vector of size n of normalized random values
random vector generator
Arguments:
- size n
Returns:
- vector of size n of normalized random values
sourceraw docstring

random-customcljs

(random-custom n fn)

create a vector of random values between 0-1 of size n using a custom random function

create a vector of random values between 0-1 of size n
using a custom random function
sourceraw docstring

random-discretecljs

(random-discrete n)

creates a vector of random 1s and 0s of size N

creates a vector of random 1s and 0s of size N
sourceraw docstring

random-discrete-customcljs

(random-discrete-custom n fn)

creates a vector of custom random 1s and 0s of size N

creates a vector of custom random 1s and 0s of size N
sourceraw docstring

random-rangecljs

(random-range vec)

returns a random range over a size of a vector as a vector

returns a random range over a size of a vector as a vector
sourceraw docstring

random-range-customcljs

(random-range-custom vec fn)

returns a random range over a size of a vector as a vector

returns a random range over a size of a vector as a vector
sourceraw docstring

random-replacecljs

(random-replace vec value)

replace random element in vector with value

replace random element in vector with value
sourceraw docstring

random-replace-customcljs

(random-replace-custom vec value fn)

replace custom random element in vector with value

replace custom random element in vector with value
sourceraw docstring

range-fillcljs

(range-fill vec start stop value)

fill range of elements in vector with value

fill range of elements in vector with value
sourceraw docstring

replace-rangecljs

(replace-range vec value position)

replace elements of vector with another set at given position

replace elements of vector with another set at given position
sourceraw docstring

zeroscljs

(zeros n)

create a vector of zeroes with size N

create a vector of zeroes with size N
sourceraw docstring

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

× close