simulate_shift: Simulate MOUF process

Description Usage Arguments Value See Also Examples

Description

Simulate MOUF process

Usage

1
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 getMu. Can also be any complex or a two-column matrix, or a multi-column matrix with some named columns "x" and "y" (case-insensitive)).

A

95% area parameter

Value

a data frame with Time, X, and Y columns.

See Also

getMu

Examples

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

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