C++ back-end function doing all the heavy lifting

Arguments

data

data cube of the state space

par

parameters for model execution or fitting

trajectoryPath

location of the track file

resolution

resolution (dimensions) of the state space (as not georeferenced)

nSimulatedSteps

number of simulated steps to run

nSimulatedRuns

number of runs to simulate

optimization

return optimization outputs (TRUE or FALSE)

verbose

provide verbose output (TRUE or FALSE)

Value

simulated model locations or a target value for optimization (cost function)