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

[ENH] extend segregation profile function to accept more spatial indices #104

Closed knaaptime closed 3 years ago

knaaptime commented 5 years ago

compute_segregation_profile calculates SIT for varying distances, but it should be extended to calculate any index that takes a W or a Network

currently, these include SIT or spatial divergence, but this might be a good time to think through which others could be re/written to follow the subclass pattern those use (I think spatialdissim, maybe others). That would help get us on the road to #4

sidenote that I still think compute_segregation_profile is a bit verbose, so i'd be open to new name suggestions

knaaptime commented 4 years ago

a reasonable option would be to mutate this into a class like MultiscaleProfile that could accept different indices. That would be more conformant with the rest of the package

knaaptime commented 3 years ago

resolved by #161