thatguy2048

thatguy2048 / SimpleEuclidean / 0.1.0

README.md

This is a simple algorithm which performs the euclidean distance calculation on input arrays.  

Input: data is a set of arrays to perform the euclidean distance calculation on, and squared is a boolean which if true uses squared euclidean distance instead of euclidean distance. The default value is false if left unspecified.

In:

"{
data:[
   [  [1,2,3] , [2,3,4]  ],
   [  [1,2,3] , [2,3,4]  ]
    ]
}"

     

Out:
[1.7320508075688772,1.7320508075688772]