K-d tree: Difference between revisions
m
→{{header|Julia}}
Line 1,320:
println("The point $rand3point is closest to the point $(cubedis[1:3, idxs[1]])",
" at distance
</lang>
{{out}}
Line 1,326:
Wikipedia example: The nearest neighbor to [9, 2] is [8, 1] at distance [1.41421].
The point [0.
[0.0689667].
</pre>
|