getBandWidth: Optimal bandwidth calculation

Description Usage Arguments Value Author(s) References Examples

View source: R/getBandWidth.R

Description

Calculates the optimal bandwidth for von Mises kernel density estimation for a given sample. Used internally by other functions in the package.

Usage

1
getBandWidth(A, kmax = 3)

Arguments

A

a vector of times of observations in radians, ie. scaled to [0, ].

kmax

maximum moment to use for estimation; see Ridout & Linkie 2009.

Value

Optimal bandwidth for the sample data, or NA if estimation fails.

Author(s)

Code by Martin Ridout, error handling modified by Mike Meredith.

References

Ridout & Linkie (2009) Estimating overlap of daily activity patterns from camera trap data. Journal of Agricultural, Biological, and Environmental Statistics 14:322-337

Taylor (2008) Automatic bandwidth selection for circular density estimation, Computational Statistics and Data Analysis, 52:3493-3500.

Examples

1
2

overlap documentation built on May 17, 2021, 9:09 a.m.