Skip to content

Commit

Permalink
Fix docstring order for dist-squared.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Jacobsen committed Oct 24, 2015
1 parent d37e6f5 commit ae7419b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kdtree.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
(defrecord Result [point ^double dist-squared])


(defn- dist-squared [^doubles a ^doubles b]
(defn- dist-squared
"Compute the K-dimensional distance between two points"
[^doubles a ^doubles b]
(loop [res (double 0.0)
ind (long 0)]
(if (== ind (alength a))
Expand Down

0 comments on commit ae7419b

Please sign in to comment.