hampel_time: hampel filter

View source: R/hampel_time.R

hampel_timeR Documentation

hampel filter

Description

detect outliers in bearings using hampel filter in a moving time window

Usage

hampel_time(path_to_data, col, k, t0 = 0.5, animal)

Arguments

path_to_data

string, dpath to file containing bearings

col

string, string indicating the column containing bearings

k

numeric, window size n seconds

t0

numeric,threshold for median filter. A high threshold makes the filter more forgiving, a low one will declare more points to be outliers. Default=0.5

animal

list, list generated by initAnimal functiom

Author(s)

Jannis Gottwald

Examples

#projroot<-paste0(getwd(),"/tRackIT_test_data/")
#animal <- getAnimal(projroot, animalID = "woodpecker")
#bearings <- list.files(animal$path$bearings, full.names = TRUE)
#lapply(bearings, function(x) hampel_time(path_to_data = x, col = "linear", animal = animal, k = 10))


Nature40/tRackIT documentation built on Nov. 21, 2023, 3:43 a.m.