simulate_shift {marcher} | R Documentation |
Simulate MOUF process
Description
Simulate MOUF process
Usage
simulate_shift(T, tau = NULL, mu, A)
Arguments
T |
time |
tau |
variance parameters - named vector with 'tau.z' and 'tau.v' |
mu |
mean vector - typically output of |
A |
95% area parameter |
Value
a data frame with Time, X, and Y columns.
See Also
Examples
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))
[Package marcher version 0.0-2 Index]