MoveOneStep: Generate movement from one grid to the next

Description Usage Arguments Value

Description

Generate movement from one grid to the next

Usage

1
MoveOneStep(starting.prob, grid, rate)

Arguments

starting.prob

Same size as grid, but has probability of that individual being in each cell; at tips, presumably 1 in one cell, 0 in all others, but as you go down this spreads out

grid

Two dimentional matrix of available spaces at this time step

rate

Probability of trying a move to a neighboring cell. Right now, rate same for all individuals, but could make trait dependent in future

Value

A matrix with probability of encountering the species in each grid cell


kmassana/phlee documentation built on May 20, 2019, 12:38 p.m.