move_population: population movement function

View source: R/RcppExports.R

move_populationR Documentation

population movement function

Description

move_population redistributes the population based on the movement probabilities

Usage

move_population(moveProp, StartPop)

Arguments

moveProp

is a list of the proportion of the population from each cell to reallocated to each of the other cells

StartPop

is a Numeric Matrix of the current populations distribution

Value

is a list of the new position for the population from each of the cells.

NOTE: This is not aggregated and requires calling the R function Reduce('+', Lst) to reaggregate. Would be better if done in function but Reduce is currently faster...but much more memory intensive to get out the lists...using the standard c++ accumulate function may work for this but untested

Examples

None at the moment


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