Skip to content

Commit

Permalink
track_simulation speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Jonsen committed Jan 11, 2024
1 parent 59f1627 commit 8d97178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vignettes/Track_simulation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The `sim` function is useful for situations where simulated random tracks are re

#### Simulate tracks from each of the 3 process models

```{r sim}
```{r sim, eval=FALSE}
set.seed(pi)
sim.rw <- sim(N = 200, model = "rw")
sim.crw <- sim(N = 200, model = "crw", D = 0.5)
Expand All @@ -44,8 +44,7 @@ sim.mp <- sim(N = 200, model = "mp", sigma_g = 0.3)
![](images/track_simulation/plot_sim1.jpg){width="95%"}

#### Fit SSM to simulated lon,lat locations (with Argos error)

```{r SSM, warning=FALSE, message=FALSE, fig.width=7, fig.height=6}
```{r SSM, eval=FALSE, warning=FALSE, message=FALSE}
# coerce simulated RW data to format expected by fit_ssm
d <- with(sim.rw, data.frame(id = 1, date, lc, lon, lat))
Expand Down
Binary file added vignettes/data/track_simulation/simdat.rda
Binary file not shown.

0 comments on commit 8d97178

Please sign in to comment.