Calculates the true coefficient of overlapping between two distributions.

1 | ```
overlapTrue(d1, d2 = NULL)
``` |

`d1` |
either a vector or a 2-column matrix of densities for equidistant points from 0 to |

`d2` |
a vector of densities as for d1; ignored if d1 is a matrix |

The coefficient of overlapping *Δ* for two probability density functions *f(x)* and *g(x)* is given by:
If the two curves in the plot below represent activity patterns of two species, the coefficient of overlapping is the area under the lower of the two curves, shaded grey in the figure:

The coefficient of overlap of the two distributions. The function is intended to calculate true overlap for simulated data. If the densities provided are fitted kernel densities, an estimate of overlap results.

Mike Meredith, based on code by Martin Ridout.

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

`overlapEst`

for various estimators of overlap.

1 2 3 4 5 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.