Calculates the overlap between two normal distributions, defined as the probability that a draw from one distribution comes from the other
OverlapDist(cov.x, cov.y, iterations = 10000)
Overlap distance between cov.x and cov.y
covariance or correlation matrix
covariance or correlation matrix
number of drows
Ovaskainen, O. (2008). A Bayesian framework for comparative quantitative genetics. Proceedings of the Royal Society B, 669-678. doi:10.1098/rspb.2007.0949