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

Using non Euclidean distances #53

Open
cd-barratt opened this issue Jun 12, 2021 · 1 comment
Open

Using non Euclidean distances #53

cd-barratt opened this issue Jun 12, 2021 · 1 comment

Comments

@cd-barratt
Copy link

Hello Desislava,

Would there be a way to feed EEMS a pre-defined distance matrix rather than have the program calculate it itself? We are using the program for marine plants dispersed by sea currents so Euclidean distances between two points are not suitable (i.e. straight lines between points overlap land areas like peninsulas, which is an unrealistic distance measure given we know they cannot disperse over land).

Thanks,
Chris Barratt

@dipetkov
Copy link
Owner

dipetkov commented Aug 8, 2021

The other distance metric is the geodesic but that will have the same issue as the Euclidean distance.

Instead what about providing a specially constructed population grid? The distance between vertices in the grid is still computed in terms of the Euclidean/geodesic but the configuration of the grid itself is "distorted" in a meaningful way?

Or simply remove demes that fall on land (i.e. make a "hole" in the population grid). This can also be achieved by providing a custom population grid with the gridpath optional argument. The only requirement is that the grid is connected.

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

No branches or pull requests

2 participants