Log likelihood cost function for model optimization

likelihood(par, data, model, loc, roi, step_selection, ...)

Arguments

par

a vector of parameter values, including one for the uncertainty on the target values

data

nested data structure with validation data included

model

model to run with data and par settings

loc

previous modeled step location

roi

region of interest with valid sampling locations

step_selection

a step selection function on the distance of a proposed move

...

extra arguments to pass to the function

Value

single log likelihood