Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to return matrix of combinations between two vectors #34

Merged
merged 4 commits into from
Sep 4, 2020

Conversation

Fdms-3741
Copy link
Contributor

The intention is to add new functionality in haversine_vector that returns a matrix with the distances between all combinations of coordinates.

To use this new functionality, the user must set the 'comb' argument to True. And the function will return the above-mentioned matrix instead.

As a bonus, the function will verify the shapes of both input vectors before proceeding if it's usage is with 'comb' as False. If the dimensions differ, the exception message also reminds the user of the new functionality.

The README file have a detailed description of the new functionality. I've included an example and a mathematical description to make it as clear as possible.

I've used this version in another project of mine and tested on it. Therefore I didn't alter the test files. The results written in README are real and can be used for such.

@jdeniau jdeniau merged commit 93c8a43 into mapado:master Sep 4, 2020
@jdeniau
Copy link
Member

jdeniau commented Sep 4, 2020

Thanks @Fd-3741

It's included in v2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants