getMu: Obtain mean vector for a range shift process

Description Usage Arguments See Also Examples

View source: R/getMu.R

Description

Obtain a mean vector for a movement with one (getMu) or more (getMu_multi) range shifts. This function is mainly used within the likelihood of range shift processes, but is also useful for simulating processes.

Usage

1
getMu(T, p.m)

Arguments

T

vector of times

p.m

mean parameters. A named vector with elements t1, dt, x1, y1, x2, y2, for a single-shift process. For multiple (n) shifts, the paramaters are numbered: (x1, x2 ... xn), (y1, y2 ... yn), (t1 .. t[n-1]), (dt1 ... dt[n-1])

See Also

simulate_shift

Examples

1
2
3
T <- 1:100
p.m <- c(x1 = 0, y1 = 0, x2 = 10, y2 = 20, t1 = 45, dt = 55)
scan_track(time = T, x=getMu(T, p.m))

Example output



marcher documentation built on May 2, 2019, 9:44 a.m.