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
0
votes
1 answer

euclidean algorithm for image comparison

i am going to develop an application for image comparison on java. For this i have choosen euclidean algorithm. This application involves with 2 images. 1. Actual image 2. Part of the actual image. Algorithm should compare the part of the image with…
janasainik
  • 811
  • 5
  • 20
  • 40
0
votes
2 answers

How do I build a matrix using two vectors?

So I need to build a matrix of x and y coordinates. I have the x stored in one matrix called vx=0:6000; and y stored in Vy=repmat(300,1,6000);. Values in x are 0,1,2,...,5999,6000. Values in y are 300,300,...,300,300. How do I build a "vector" with…
0
votes
2 answers

How to measure the length of a 2-dimensional path in separate steps

I am a newbie in python. I am stuck by finding the length of a path in 2d. I have no idea what I'm doing wrong. Please help! import math vector1 = v1 vector2 = v2 def length (v): """ Length of a vector in 2-space. Params: v (2-tuple)…
Amber Flynn
  • 45
  • 1
  • 3
0
votes
0 answers

Extract sub-matrix from a distance matrix

I have a distance matrix in this form, "_M" being the Mock genes and "_W" being the Wild_type genes. Now the distance matrix shows the distance between each and every gene (Even between mock genes) ENSG00000186340_M…
0
votes
2 answers

Error when using cluster package to compute euclidean distances

I have been working on a text mining project. I have performed some LDA topic modelling and now I have my topic probabilities. I would like to use the cluster package so that I can get the euclidean distances between documents so I can create a…
0
votes
1 answer

Assign clusters to locations, based on the euclidean distance

I want to calculated to which cluster a point belongs, based on the euclidean distance. clusters xcor ycor 1 64.99206 78.48413 2 1102.00000 2466.67500 3 1598.11060 1298.10138 4 499.86441 …
Jelmer
  • 351
  • 1
  • 15
0
votes
0 answers

Online Metric Learning for Face Recognition

I'm using OpenFace to compute representations (in 128D) for faces found in images taken under unconstrained conditions that show significant variations in lighting, time, etc. According to their website and demos, a standard Euclidean distance with…
0
votes
2 answers

Nearest Neighbor (distance between coordinate pairs)

I have 2 data sets of cells (each set has multiple rows (individual cells) with x,y coordinates as columns) I want to find the smallest distance for every cell in data set A to any cell in data set B. examples DSA = 0,0 0,1 1,0 DSB set B = 2,2 to…
StevenL
  • 99
  • 1
  • 1
  • 11
0
votes
1 answer

There are other useful similarity or distance metrics?

I'm developing an approximate computation system. Defining how much similar two objects are is a basic operation in such a system. Usually in computer science and math, similarity is synonym of distance between two objects, but it is not always…
0
votes
0 answers

Code to generate 3D random geometric graph in r

Hi all i want to generate 3D geometric random graph in r. In igraph there is no function of generating the graph in 3D. In 3D geometric random graph i found the euclidean distance between of the uniformly distributed points in 3D space and…
seema aswani
  • 177
  • 1
  • 14
0
votes
1 answer

Computing Euclidean Distance whilst holding point A constant and changing point B in R

I am currently working on a project for which I am interested in calculating the distance between the location of a basketball player and the ball during an event. To do this I created the following function: ## Euclidean distance distance <-…
Bmaik
  • 43
  • 1
  • 4
0
votes
0 answers

ROC curve using Euclidean distance (MatLab)

Trying to understand the function perfcurve in MatLab. Information regarding the function is confusing me at two points. At one place, it says that You can use perfcurve with any classifier or, more broadly, with any method that returns a numeric…
Mallika
  • 55
  • 1
  • 2
  • 12
0
votes
0 answers

Finding the distance between two images in MATLAB

I would like to find the distance between two images in matlab where each one is represented by (24x32x3) matrix. Any Idea how to apply any distance technique (ex. euclidean distance) to get the difference in one value? Thanks
0
votes
1 answer

Create a pairwise distance matrix from the centre to sample points

I have 5 samples in the matrix below (mydf). The euclidean distance between centre to the samples is given by the Distance column. How can I form a relationship matrix between the pairwise combination of distance of samples (eg., A:A,A:B,A:C....E:E)…
MAPK
  • 5,635
  • 4
  • 37
  • 88
0
votes
1 answer

Python: how do I create a dict of lists containing the euclidean distances from a point?

Say that I have a regular grid of points with a given set of coordinates, like this: Node IDs Coordinates 0 1 2 (0,0) (1,0) (2,0) 3 4 5 (0,1) (1,1) (2,1) 6 7 8 (0,2) (1,2) (2,2) In my case,…
FaCoffee
  • 7,609
  • 28
  • 99
  • 174