2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,4 +1,4 @@
|
|||
vecl =: +/"1&.:*: NB. length of each of vectors
|
||||
vecl =: +/"1&.:*: NB. length of each vector
|
||||
dist =: <@:vecl@:({: -"1 }:)\ NB. calculate all distances among vectors
|
||||
minpair=: ({~ > {.@($ #: I.@,)@:= <./@;)dist NB. find one pair of the closest points
|
||||
closestpairbf =: (; vecl@:-/)@minpair NB. the pair and their distance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue