knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/" )
The ovltools is designed to provide some of functions that can calculate overlap between two sample distributions. You can find some of examples in https://psychemistz.github.io/ovltools/. Learn more in vignette("ovltools")
. Currently, this package provides KNN, KDE, histogram and distribution fitting based overlap calculations.
# Install development version from GitHub devtools::install_github("psychemistz/ovltools")
It designed to calculate between two sample distributions.
## overlap between two normal distributions N(0,1) and N(1,1). n=100. x1 = rnorm(100, 0) x2 = rnorm(100, 1) ## histogram based overlap calculation OVL = ovl_hist(x1, x2) ## Plot hist(x1) hist(x2, add=T)
Seongyong Park (psychemistz@gmail.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.