move_prob: movement probability function

View source: R/RcppExports.R

move_probR Documentation

movement probability function

Description

move_prob calculates the movement probability between a cell and all other cells based on the distance and lambda.

Usage

move_prob(start, lambda, hab)

Arguments

start

is a Numeric vector of dim 2 for the starting position c(x,y)

lambda

is an integar for the value for the exponential decay in probability of movement, i.e. Pr(B|A) = \exp{-\lambda*dist_{a,b}} / Sum(c=1:c=n) \exp{-\lambda*dist}

hab

is a matrix of the habitat suitability

Value

is a matrix of the movement probabilities from a cell

Examples

move_prob(c(2, 5), 0.3, matrix(nc = 3, runif(9))) 


pdolder/MixFishSim documentation built on Oct. 17, 2023, 4:25 p.m.