Questions tagged [distance-matrix]

A distance matrix is a matrix containing the pairwise distances between the elements of a set. The "distance" may rely on the concept of metric.

The distance matrix for an N-elements set is a NxN matrix in which entry (i,j) contains the distance between items i and j.
The distance might be related to the concept of metric (e.g. Euclidean distance, Mahlanobis distance, and so on) but there are also non-metric distance matrices: an adjacency matrix is an example of such non-metric distance matrices.

174 questions
-1
votes
1 answer

how to get coordiantes in response instead of origin & destination addresses in Google Map Distance Matrix API

I'm using google distance matrix api in my android application. I'm calling Google distance matrix api by sending origin and destination to API. API returns response as: { "destination_addresses" : [ "Islamabad, Islamabad Capital Territory,…
-1
votes
1 answer

Bing API - Incorrect JSON format to distance matrix

i am tryiing to pass parameters in bing map distance matrix api with request.get(url,parameter) but it is not passing in correct order i tried this enter code here parameters =…
-1
votes
1 answer

Finding Clusters with Max Intra-Distance Based on Geo Co-ordinates

I have DataSet that contains Lat long data. ('ID','Latitude','Longitude') ('A0001',19.222,71.555) Using this data I have computed the distance Matrix, where M[i][j] is the distance between ID:i and ID:j. The distance is computed using the below…
-1
votes
1 answer

Negative length vectors are not allowed in distance function

I have a large data frame (375,000 row and 5 columns), all variables are numerical. I would like to spatio-temporal cluster this data frame using hierarchical clustering in R. However, when I try to calculate the distance matrix, I get the following…
-1
votes
1 answer

Different responses when using Google Distance Matrix API

I have two postcodes (A) and (B) and I am seeing different distances and durations between A to B and B to A and while this matches the Google Maps website, we have seen the distance and duration between A to B in that direction change from one day…
-1
votes
1 answer

How to calculate distance for multiple destination php

How to get distance of multiple destination one by one from my estimate fare function..as i m getting data in below format. I need to get distance one by one and then add all distance. please help me to implement in my estimate fare function. Array …
-1
votes
2 answers

Represent the similarity between many items in a nice manner MATLAB

I want to brainstorm an idea in MATLAB with you guys. Given a matrix with many columns (14K) and few rows (7) where columns are items and rows features of the items, I would like to compute the similarity with all items and keep it in matrix which…
Yas
  • 811
  • 4
  • 11
  • 20
-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…
1 2 3
11
12