cesaraustralia / Dispersal.jl

Tools for simulating organism dispersal
Other
21 stars 3 forks source link

cleanup and refactor kernel rules and documentation #92

Closed rafaqz closed 3 years ago

rafaqz commented 3 years ago

Description

This PR reorganizes the kernel rule syntax so they are easier to define (again for nice code in the methods paper!) The syntax changes can be seen in the tests, but basically you can do:

InwardsDispersal(radius=2, formulation=ExponentialKernel())

And not create a DispersalKernel manually at all. The syntax is identical for OutwardsDispersal.

It also separates out the formulation and distance methods into separate files so the various components are clearer.

Changes (choose one only, with x or click after creating PR):

Checklist:

For bugfixes

For new Rules