Skip to content

carlohamalainen/settlement-time-game

 
 

Repository files navigation

Reference

Schmidt, K.A., Johansson, J. Kristensen, N.P. and Jonzen, N. Consequences of information use in breeding habitat selection on the evolution of settlement time. Paper in preparation.

Quick Start

If you have git:

$ git clone https://github.com/nadiahpk/settlement-time-game
$ cd settlement-time-game

If you don't have git, just download and unpack the latest zip file:

https://github.com/nadiahpk/settlement-time-game/archive/master.zip

In Octave

> params;
> [mu,fval] = [y,fval]=solveEss(.5,p)

Should give the result

y =  0.58899

The Wallenius solver

In the subdirectory wnhgsolver is C++ code for the Wallenius distribution (from Agner Fog) and the file wnhg8.cpp to generate wnhg8.oct. You can create your own by running

$ mkoctfile wnhg8.cpp

About

Octave code to solve for the evolutionarily singular settling time strategy for a nesting bird (e.g. ovenbird) to avoid a nest predator (e.g. chipmunks)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 82.9%
  • C 12.5%
  • MATLAB 4.6%