Skip to contents

Extract the estimated movement variance from a dBBMM or dBGB variance object.

Usage

mt_motion_variance(x, ...)

# S3 method for class 'mt_dbbmm_variance'
mt_motion_variance(x, ...)

# S3 method for class 'mt_dbgb_variance'
mt_motion_variance(x, ...)

Arguments

x

An mt_dbbmm_variance or mt_dbgb_variance object, as returned by mt_dbbmm_variance() or mt_dbgb_variance().

...

Ignored.

Value

For mt_dbbmm_variance: a numeric vector of variances (one per location, NA at track margins).

For mt_dbgb_variance: a data.frame with columns para (parallel variance) and orth (orthogonal variance).

Examples

if (FALSE) { # \dontrun{
library(move2)
library(sf)
fishers <- mt_read(mt_example())
fishers <- fishers[!st_is_empty(fishers), ]
f1 <- fishers[mt_track_id(fishers) == "F1", ]
f1_proj <- st_transform(f1, mt_aeqd_crs(f1))
var_obj <- mt_dbbmm_variance(f1_proj, location_error = 25,
                              window_size = 31, margin = 11)
head(mt_motion_variance(var_obj))
} # }