generate_bout_radius {walkboutr} | R Documentation |
Generate Bounding Circle Radius for Walking Bouts
Description
This function generates a bounding circle radius for each walking bout identified in the input data. The bounding circle is defined as the smallest circle that fully contains all GPS locations observed during a walking bout.
Usage
generate_bout_radius(walk_bouts, dwellbout_radii_quantile)
Arguments
walk_bouts |
A data frame containing GPS locations for each walking bout, with columns "longitude", "latitude", and "bout" (a unique identifier for each bout) |
dwellbout_radii_quantile |
A quantile (between 0 and 1) used to filter outlying GPS data points before generating the bounding circle. GPS points with a distance from the center greater than the radius of the circle that contains (1 - dwellbout_radii_quantile) of the GPS points are considered outliers and are excluded. |
Value
A data frame containing the bout identifier and the radius of the bounding circle for each walking bout.