Distance Metric - Euclidean Distance
The java program finds distance between two points by Euclidean distance metric and the points can be a scalar (single element) or a vector (more than one element). The Euclidean distance between two points is measured based on Pythagoras theorem on right angle triangle. AC 2 = AB 2 + BC 2 AC 2 - area of hypotenous AB 2 – area of base BC 2 – area of perpendicular Euclidean distance= AC = sqrt( AB ^2 +BC ^2 ) Euclidean distance - on 1-D The points x and y are scalar on 1-dimension and each point has one element. It is consider that the points on a measuring scale in case of 1-Dimension. The distance between these two points are measured by the following formula. ID-Euclidean Euclidean distance - on 2-D The points x and y are vector on 2-dimension and each point has two elements.It is consider that the points on a Cartesian 2-D coordinate graph in case of ...