stbc | R Documentation |
stbc
is a specific constructor for movement ecology pourposes. By default it implements a bivariate (speed/turn) clustering for behavioural annotation of animals' movement trajectories. Alternatively, it can perform a trivariate clustering by including the solar position covariate (i.e. solar height or solar azimuth) as a daytime indicator.
stbc(
obj,
stdv = c(0.1, 5 * pi/180),
spdLim = 40,
smth = 0,
scv = "None",
maxItr = 200,
info = 0
)
obj |
A A A |
stdv |
a vector with bounds for the maximum precision of clusters, given as minimum standard deviation for each variable, (by default is set to 0.1 m/s for velocities and 5 degrees for turns). |
spdLim |
A speed limit for automatic detection of outliers. Trajectory locations with associated values of speed above the spdLim are not eliminated but will play no part in the clustering. By default is set to 40 m/s. |
smth |
A smoothing time interval in hours. This is used to estimate local values of speed and turn computed as an average over a time window centered at each location. |
scv |
A solar position covariate to be used as a daytime indicator. It can be either 'height' (the solar height in degrees above the horizon) or 'azimuth' (the solar azimuth in degrees from north). If it is used, a trivariate clustering is performed, increasing to a maximum of 8 the number of clusters (behaviours) that can potentially be identified. By default this value is set to None (i.e. perform the standard bivariate speed/turn clustering). |
maxItr |
A limit to the number of iterations in case of slow convergence (defaults to 200). |
info |
Level of information shown at each step: info=0 (default) shows step likelihood, number of clusters, and number of changing labels; info=1, include clustering statistics; info=2, include delimiters information; info<0, suppress any step information. |
Returns a binClstPath object.
# -- apply EMbC to the example path --
mybcp <- stbc(expth)
## Not run:
# --- binary clustering of a Move object ---
require(move)
mybcm <- stbc(move(system.file("extdata","leroy.csv.gz",package="move")))
# --- binary clustering of a stack of trajetories ---
mybcm <- stbc(list(mypth1,mypth2,mypth3))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.