Learn R Programming

Rtrack (version 1.0.7)

call_mwm_strategy_garthe: Strategy classification using the legacy Garthe classifier.

Description

Calculates strategies using a method based on Garthe et. al. 2009.

Usage

call_mwm_strategy_garthe(metrics, parameters = NULL)

Value

An rtrack_strategies object. The calls element contains the called strategy/strategies as well as several additional metrics generated by this method.

Arguments

metrics

An rtrack_metrics object from calculate_metrics or a list of such objects.

parameters

A data.frame of parameters to adjust output. Currently not implemented.

See Also

call_strategy.

Examples

Run this code
require(Rtrack)
track_file <- system.file("extdata", "Track_1.csv", package = "Rtrack")
arena_description <- system.file("extdata", "Arena_SW.txt", package = "Rtrack")
arena <- read_arena(arena_description)
path <- read_path(track_file, arena, track.format = "ethovision.3.csv")
metrics <- calculate_metrics(path, arena)
strategies <- call_mwm_strategy_garthe(metrics)
# Inspect the strategy call
strategies$calls

Run the code above in your browser using DataLab