Liking cljdoc? Tell your friends :D

org.clojars.punit-naik.clj-ml.utils.geometry


distanceclj

(distance point-1 point-2)

Calculates distance between two points in space A point can be described as a vector/list of [an, bn, cn, .... , zn] The distance between two points [a1, b1, c1, .... , z1] and [a2, b2, c2, .... , z2] will be: square root of [(a2 - a1)^2 + (b2 - b1)^2 + (c2 - c1)^2 + .... + (z2 - z1)^2]

Calculates distance between two points in space
A point can be described as a vector/list of [an, bn, cn, .... , zn]
The distance between two points [a1, b1, c1, .... , z1] and [a2, b2, c2, .... , z2] will be:
square root of [(a2 - a1)^2 + (b2 - b1)^2 + (c2 - c1)^2 + .... + (z2 - z1)^2]
sourceraw docstring

distance-fn-assertion-error-stringclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close