(average coll)
return average of collection as vector
return average of collection as vector
(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
(mat-trans mat)
Rotates an ND matrix (vec of vecs)
Rotates an ND matrix (vec of vecs)
(of3 value)
create a vector of size 3 with value
create a vector of size 3 with value
(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
(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
(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
(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
(random n)
random vector generator Arguments:
random vector generator Arguments: - size n Returns: - vector of size n of normalized random values
(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
(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
(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
(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
(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
(random-replace vec value)
replace random element in vector with value
replace random element in vector with value
(random-replace-custom vec value fn)
replace custom random element in vector with value
replace custom random element in vector with value
(range-fill vec start stop value)
fill range of elements in vector with value
fill range of elements in vector with value
(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
(zeros n)
create a vector of zeroes with size N
create a vector of zeroes with size N
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close