distance-matrix Questions

2

Solved

I have two large sets of 2D points and need to calculate a distance matrix. I need it to be fast so I used NumPy broadcasting. Of two ways to calculate distance matrix I don't understand why one is...
Aretino asked 30/7, 2021 at 13:21

2

Solved

I have a csv file with a list of co-ordinate positions for over 2000 farms, with the following structure; FarmID | Latidue | Longitude | ------ |---------|-----------| 1 | y1 | x1 | 2 | y2 | x...
Talkie asked 11/5, 2017 at 2:18

2

Solved

Assume the following distance matrix in python... 0 1 2 3 0 0 1 4 8 1 1 0 3 7 2 4 3 0 3 3 8 7 3 0 I would like to convert this distance matrix to a list of pairwise euclidean distances, as ...
Hydrogenous asked 10/3, 2021 at 21:52

3

I have tried pairing the samples but it costs huge amount of memory as 100 samples leads to 9900 samples which is more costly. What could be the more effective way of computing distance matrix in d...
Scorify asked 14/6, 2016 at 10:47

2

Solved

I would like to know how can I extract the values of the first diagonal from a distance matrix. For example: > mymatrix [,1] [,2] [1,] 1 2 [2,] 3 4 [3,] 6 4 [4,] 8 6 > dist(mymatrix) 1 ...
Deoxyribose asked 30/8, 2016 at 15:45

1

Solved

I found an R package Rlof which uses multithreading to calculate distance matrices and it does a wonderful job. However, the output of the function distmc is a vector rather than a matrix. Applyin...
Everyday asked 6/8, 2018 at 12:23

1

Solved

The bottleneck in my code is the area where I calculate a pairwise distance matrix. Since this is the slowest part by far, I have spent much time in speeding up my code. I have found many speedup...
Salesroom asked 9/10, 2017 at 22:26

1

Solved

I am developing my first Cuda application, and I have a kernel with "below-expected throughput", which seems to be the biggest bottleneck at the moment. The task of the kernel is to compute an N b...
Beauty asked 2/1, 2018 at 13:49

2

Solved

This question is sort of a follow-up to how to extract intragroup and intergroup distances from a distance matrix? in R. In that question, they first computed the distance matrix for all points, an...
Viscera asked 22/8, 2016 at 23:30

1

Solved

Algorithm : I'm writing a program with CUDA and the problem is the following: Two matrices A (n * 128) and B (m * 128) I take the first row of A, and I compute the distance between that vector ...
Kazimir asked 12/6, 2014 at 14:31

1

Solved

Given the matrix, df <- read.table(text=" X1 X2 X3 X4 X5 1 2 3 2 1 2 3 4 4 3 3 4 4 6 2 4 5 5 5 4 2 3 3 3 6 5 6 2 8 4", header=T) I want to create a distance matrix containing t...
Cumberland asked 22/5, 2012 at 17:47
1

© 2022 - 2024 — McMap. All rights reserved.