overlapCross: Find crossings of estimated densities

Description Usage Arguments Details Value

Description

overlapCross Fits densities to provided data and returns the locations where they cross.

Usage

1
overlapCross(A, B, adjust = 0.8, kmax = 3, n.grid = 128, scale24 = T)

Arguments

A, B

Numeric vectors of sighting times in radians, i.e. [0,2pi]

adjust

Scaling factor for the bandwidth estimate, see overlapEst

kmax

Parameter passed to getBandWidth, see overlapEst.

n.grid

The number of grid points used to find rough crossing windows

scale24

Logical, if true roots are multiplied by 12/pi for 24hr scale

Details

This function is designed for use with relatively smooth densities with only a few crossings. It first estimates densities using the provided options and data. It then finds intervals where crossings occur using a grid search with n.grid points over [0,2pi] before calling uniroot to numerically approximate the crossings in each interval using the difference between densities.

Value

A vector of crossings times on the requested scale.


jbhender/camtrap documentation built on May 18, 2019, 5:59 p.m.