20 lines
627 B
Racket
20 lines
627 B
Racket
Wikipedia Test
|
|
Nearest neighbour to (9,2) is: #(8 1)
|
|
Distance: 2
|
|
Visits: 3
|
|
|
|
1000 points in R^3 test
|
|
Nearest neighbour to #(0.75 0.75 0.75) is:
|
|
#(0.8092534479975508 0.7507095851813429 0.7706494651024903)
|
|
Control: #(0.8092534479975508 0.7507095851813429 0.7706494651024903)
|
|
Distance: 0.003937875019747008
|
|
Control: 0.003937875019747008
|
|
Visits: 83
|
|
|
|
1000 points in R^3 test
|
|
Nearest neighbour to #(0.75 0.75 0.75) is:
|
|
#(0.7775581478448806 0.7806612633582072 0.7396664367640902)
|
|
Control: #(0.7775581478448806 0.7806612633582072 0.7396664367640902)
|
|
Distance: 0.0018063471125121851
|
|
Control: 0.0018063471125121851
|
|
Visits: 39
|