K-d tree: Difference between revisions

m
Line 1,320:
 
println("The point $rand3point is closest to the point $(cubedis[1:3, idxs[1]])",
" at distance ($(dists[1]).")
</lang>
{{out}}
Line 1,326:
Wikipedia example: The nearest neighbor to [9, 2] is [8, 1] at distance [1.41421].
The point [0.639401662566; 0.57621444445; 0.5877770822527] is closest to the point [0.661115621462; 0.53310838924; 0.6156340779214] at distance
[0.0689667].
(Array{Float64,1}[[0.055728]][1]).
</pre>
 
4,105

edits