ovl_kde.Rd
Calculate distribution overlap by KDE (Kernel Density Estimation) This function compares two estimated distributions by KDE method. It utilizes base density function in R.
ovl_kde(x1, x2, n = 1024)
x1 | A numeric vector. |
---|---|
x2 | A numeric vector. |
n | An integer. Number of bins in KDE. |
estimated overlap between two distributions (range: 0 to 1)
This code is adopted from overlapping package (paper) and modified by Seongyong Park. You can find original implementation in overlapping R package. (github)
Seongyong Park (2020-08-18)
#> [1] 0.3554536