On Tue, Apr 20, 2010 at 2:44 PM, Steve Wangen <
i.bl...@gmail.com> wrote:
> Genius!
> Alright - one last question and I'll never bug you again (yeah right).
> I'm having some trouble specifying the r.mdig.kernel - my impression is to
> implement an exponential kernel, the only arguments that need to be given
> are "d_b" and "kernel=exponential", however that doesn't seem to be working
> quite right.
> Looking at the kernel_math.c file, it looks like it can also have a value
> for 'p', which I assume to be the 'frequency' argument - is that correct?
The p is the sampled random variate from 0 to 1. The inverse cdfs are
used to convert this into a random variate fitting the distribution.
> The default for the limit is 0.0 - does that mean by default it throws away
> all events?
When limit == 0.0 there should be no limit.
> So, with these thoughts I tried specifying it as:
> <event name="r.mdig.kernel">
> <param name="kernel">
> <value>exponential</value>
> </param>
> <param name="d_b">
> <value>0.1</value>
> </param>
> <param name="frequency">
> <value>1</value>
> </param>
> <param name="limit">
> <value>50</value>
> </param>
> </event>
> I thought this would provide a kernel of the form p=0.1*e^(-0.1x) and
> subject all individuals to dispersal, with a max dist of 50 cells (which
> would be a very low probability). But, when I include it like this, nothing
> happens. Am I interpreting the parameters incorrectly, or does that sound
> like it should work?
You're frequency parameter means that the mean/lambda of the Poisson
distribution used to generate events is 1. This means you'll probably
get a lot of evaluations for the number of events being equal to 0.
Check out the graphs here:
http://en.wikipedia.org/wiki/Poisson_distribution
Frequency is independent of density at the moment, I could probably
add some simple density dependence if you liked, but you'd have to
properly define it for me first.
I guess the simplest method would just be to subject every individual
within in a cell to kernel dispersal.
...
Since I was using it primarily for human mediated dispersal I made an
assumption that the density dependent effects would be minimal (and
that I didn't actually have enough data to calibrate such an effect).
J
--
Subscription settings:
http://groups.google.com/group/mdig-user/subscribe?hl=en