Returns the log base 2 of the elements in the given matrix, sequence or number.
Equivalent to R's log2 function.
(defn log2 "Returns the log base 2 of the elements in the given matrix, sequence or number. Equivalent to R's log2 function." ([A] (transform-with A #(/ (Math/log %) (Math/log 2)) log2)))
Comments top
No comments for log2. Log in to add a comment.