Description Usage Arguments Value See Also Examples
Simulate MOUF process
1 | simulate_shift(T, tau = NULL, mu, A)
|
T |
time |
tau |
variance parameters - named vector with 'tau.z' and 'tau.v' |
mu |
mean vector - typically output of |
A |
95% area parameter |
a data frame with Time, X, and Y columns.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | require(marcher)
# 95% home range area
A <- 20
# distance of migration
D <- 100
# centers of attraction
x1 <- 0; y1 <- 0
x2 <- sqrt(D); y2 <- sqrt(D)
# time scales
tau.z <- 5
tau.v <- 0.5
t1 <- 90
dt <- 20
# mean parameters (t1,dt)
mus <- c(t1=t1,dt=dt,x1=x1,y1=y1,x2=x2,y2=y2)
# time-scale parameters
taus <- c(tau.z = tau.z, tau.v = tau.v)
# generate and plot mean vector
T <- 1:200
Mu <- getMu(T, mus)
# simulate and plot MOUF process
SimTrack <- simulate_shift(T, tau=taus, Mu, A=A)
with(SimTrack, scan_track(time=T,x=X,y=Y))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.