Learn R Programming

SiMRiv (version 1.0.7)

state: Define a movement state

Description

Defines a behavioral state to be used when creating species.

Usage

state(concentration, pwind = perceptualRange("circular", 0)
    , steplen = 1, name = "")
  state.Resting()    # still state
  state.RW()         # uniform random walk (brownian motion),
                     # independent of resistance
  state.CRW(concentration)  # correlated random walk,
                          # independent of resistance

Value

An object of class state.

Arguments

concentration

turning angle concentration, a value between 0 (uniform distribution resulting in random walk) and 1 (only one value possible resulting in a straight line path)

pwind

a perceptualRange definition

steplen

the base (maximum) step length of this state in map units. Note that the actual step length depends on the resistance in each step.

name

the name of the state

Details

See Arith-methods for more convenient ways of setting parameters, instead of using state.

References

  • Codling, E. A., Plank, M. J., & Benhamou, S. 2008. Random walk models in biology. Journal of the Royal Society Interface, 5(25), 813-834.

See Also

species, perceptualRange, Arith-methods.

Examples

Run this code
## a correlated random walk influenced by landscape

state(0.97, perceptualRange("cir", 500), 10, "CorrelatedRW")

## the same, but using the shortcut form

state.CRW(0.97) * 500 + 10

Run the code above in your browser using DataLab