shawnlaffan / biodiverse

A tool for the spatial analysis of diversity
http://shawnlaffan.github.io/biodiverse/
GNU General Public License v3.0
75 stars 19 forks source link

randomisations: add proximity swapper #948

Closed shawnlaffan closed 1 week ago

shawnlaffan commented 2 weeks ago

A potentially interesting randomisations is where pairs of groups are selected based on some neighbourhood condition. i.e. select group 1, then select group 2 from the set of groups within a specified neighbourhood of group 1.

A bonus option is to then weight by proximity.

This could be done for the curveball alg first, but potentially also the independent swaps algorithms.

shawnlaffan commented 2 weeks ago

Re-open. Need to ensure the caching works under spatial stratification.