Computes the overlap between two distributions.
References
Schoener TW. The Anolis Lizards of Bimini: Resource Partitioning in a Complex Fauna. Ecology(1968) 49:704–726. doi:10.2307/1935534 .
Examples
if (FALSE) { # \dontrun{
library(isdmtools)
# Create two identical distributions (should have high overlap)
v1 <- rnorm(1000, mean = 10, sd = 1)
v2 <- rnorm(1000, mean = 10, sd = 1)
overlap_high <- calc_niche_overlap(v1, v2)
# Create two divergent distributions (should have low overlap)
v3 <- rnorm(1000, mean = 20, sd = 1)
overlap_low <- calc_niche_overlap(v1, v3)
} # }