Questions tagged [euclidean-distance]

the Euclidean distance or Euclidean metric is the "ordinary" distance between two points that one would measure with a ruler, and is given by the Pythagorean formula.

In mathematics, the Euclidean distance or Euclidean metric is the "ordinary" distance between two points that one would measure with a ruler, and is given by the Pythagorean formula. By using this formula as distance, Euclidean space (or even any inner product space) becomes a metric space. The associated norm is called the Euclidean norm.

http://en.wikipedia.org/wiki/Euclidean_distance

941 questions
-2
votes
1 answer

How to measure pairwise distances between two sets of points?

I have two datasets (csv files). Both of them contains latitudes-longitudes of two sets (220 and 4400) of points. Now I want to measure pairwise distances (miles) between these two sets of points (220 x 4400). How can I do that in python? Similar to…
Asad Tan
  • 79
  • 1
  • 1
  • 7
-2
votes
2 answers

How can I speed up my 3D Euclidean distance matrix code

I have created code to calculate the distance of all objects (tagID) from one another based on x, y, z coordinates (TX, TY, TZ) at each time step (Frame). While this code does work, it is too slow for what I need. My current test data, has about…
-2
votes
1 answer

How to clustering based on the distance in Python pandas?

I have two dataframes with two groups of stations information. One for the 15 small stations and another for the 5 main stations. Small Station Information(15*3): SmallStation_ID longitude latitude 0 dongsi_aq 116.417 …
Jiayu Zhang
  • 719
  • 7
  • 22
-2
votes
1 answer

Calculating distance between points in matlab

Having difficulty understanding the following code in Matlab to calculate Euclidean distance between two points, where X is the data to be classified and label corresponds to cluster membership. label = ones(1,…
Papantonia
  • 111
  • 10
-2
votes
1 answer

How to create spaces in a textbox?

I have a vb net program to take a binary value in the image. This syntax produces 111110 on textbox3.text. I want no spaces at textbox3.text 1 1 1 1 1 0 Dim x, y As Integer Dim gambar As New Bitmap(PictureBox7.Image) …
MHD
  • 1
  • 2
-2
votes
1 answer

Dist and hclust functions outputting unexpected/incorrect outputs

I have been attempting to use R as an alternative to MVSP for cluster analysis and PCA. However, R is giving drastically different outputs from MVSP using all the functions that I've found, including dist, bcdist, hclust and daisy functions. I have…
-3
votes
1 answer

How to find the euclidean distance between X and each sublist of Z using python

The points are x=[[0.5697071,0.447144773,0.45310486]] and z=[[0,0.47144773043356025,0],[0,0.47144773043356025,0.4531048568095023],[0.5697070991026062,0.47144773043356025,0.4531048568095023],[0,0,0]] I want a Python code to solve the above problem,…
sai
  • 1
  • 1
-3
votes
1 answer

Normalized distance between two points - MATLAB

I would like to normalize the euclidean distance between two points so that it becomes between 0 & 1. The points are represented as follows: (x,y). Any ideas?
Ðina YŏŜri
  • 55
  • 2
  • 10
-4
votes
1 answer

Incorrect answer of Euclidean Distance Java

I am making a program to calculate the Euclidean Distance of 4 values of Training Data with 4 values of Test Data. For KNN i need to find the Euclidean Distance which i programmed in Java and i am getting an incorrect answer from the result. /** * …
Jee Whizz
  • 21
  • 1
  • 6
-4
votes
1 answer

NAs introduced by coercion error on Numeric Data Frame

I am trying to cluster a Data Frame but when I run the dist Function I get the error "NAs introduced by coercion". At first I thought if was becuase my DF contained factor vectors, like this: but I then made a new DF with just numeric values and…
Gordon
  • 73
  • 7
1 2 3
62
63