View source: R/psrwe_distance.R
get_distance | R Documentation |
Calculate difference measures using different metrics.
get_distance( cov0, cov1, metric = c("ovl", "ksd", "astd", "std", "abd", "ley", "mhb", "omkss") )
cov0 |
Vector (or matrix for |
cov1 |
Vector (or matrix for |
metric |
Metric to use for calculating the distance with options:
(default)
|
A real value of the distance.
x <- rnorm(100, mean = 0, sd = 1) y <- rnorm(1000, mean = 1, sd = 2) get_distance(x, y, "ovl") get_distance(x, y, "abd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.