Description Usage Arguments Value Author(s) References Examples
Calculates the optimal bandwidth for von Mises kernel density estimation for a given sample. Used internally by other functions in the package.
1 | getBandWidth(A, kmax = 3)
|
A |
a vector of times of observations in radians, ie. scaled to [0, 2π]. |
kmax |
maximum moment to use for estimation; see Ridout & Linkie 2009. |
Optimal bandwidth for the sample data, or NA if estimation fails.
Code by Martin Ridout, error handling modified by Mike Meredith.
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.
1 2 | data(simulatedData)
getBandWidth(tigerObs, kmax = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.