getMu function

Obtain mean vector for a range shift process

Obtain mean vector for a range shift process

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.

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])

Examples

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))

See Also

simulate_shift

  • Maintainer: Eliezer Gurarie
  • License: GPL-2
  • Last published: 2017-04-12

Useful links