pysal / segregation

Segregation Measurement, Inferential Statistics, and Decomposition Analysis
https://pysal.org/segregation/
BSD 3-Clause "New" or "Revised" License
112 stars 26 forks source link

Generalize also for haversine distance #100

Closed renanxcortes closed 5 years ago

renanxcortes commented 5 years ago

This address the issue raised in https://github.com/pysal/segregation/issues/96.

knaaptime commented 5 years ago

this looks good. though i'm still not sure why euclidian distance is failing in the first place...

(i.e. the index in #96 shouldn't be zero)

renanxcortes commented 5 years ago

this looks good. though i'm still not sure why euclidian distance is failing in the first place...

(i.e. the index in #96 shouldn't be zero)

So, I rerun using the internal original function and got these results: https://github.com/pysal/segregation/issues/96#issuecomment-507891055

renanxcortes commented 5 years ago

Ok, the last two commits comprise what we recently discussed. The only thing that it is missing is the set of clever checking of the input .crs to guess if the user input is projected or not. I'll work on that, but any help on that will be really valuable!