overlapEstWindow: Estimate overlap and excess for a fixed window.

Description Usage Arguments Details Value Author(s)

Description

Estimates densities for two sets of sighting times and then returns both the overlap and difference within a specified window.

Usage

1
overlapEstWindow(A, B, t0 = 0, t1 = 24, adjust = 0.8, kmax = 3)

Arguments

A, B

Numeric vectors of sighting times in [0,2pi]

t0, t1

The window over which to estimate the overlap and excess stats

adjust, kmax

See overlapEst.

Details

This functions uses tgetBandwidth and densityFit to estimate density functions for the times provided as A and B. The various overlap estimates described in overlapEst are forgone in favor of adaptive quadrature using integrate. The arguments t0 and t1 are transformed to radian cscale and then used as the limits of integration, wrapped when appropriate.

Value

A list containing:

overlap

The area under the minimum of the two densities within the window requested using t0 and t1.

excess

Contains the area between the density curves within the window. If the functions cross within the window, this is the net difference. Differences are for f_A less f_B.

window

The requested interval.

Author(s)

James Henderson based on work by Mike Meredith and Martin Rideout.


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