You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
m := (1to:20) collect: [:index | Arraywith: (rand nextInt:10)]. "only integers, obviously with multiples. test distances because the nearest neighbours are not necessarily the same"
107
+
m := (1to:20) collect: [:index | Arraywith: (rand nextInteger:10)]. "only integers, obviously with multiples. test distances because the nearest neighbours are not necessarily the same"
108
108
selfinitializeTreeWith: m as:true.
109
109
0to:11do:[:v | aVector :=Arraywith: v.
110
110
aResult :=(aVector first - (stupid nnSearch: aVector i:3)) abs. "distances between 3 nearest numbers and aVector "
0 commit comments