medianDiff | R Documentation |
Computes the median of the set X - Y. X - Y denotes the set \{x - y | x \in X, y \in Y
}.
medianDiff(x, y)
x , y |
Numeric vectors |
Special case of the function kthPair
.
The median element of X - Y
Sheila Görz
Johnson, D. B., & Mizoguchi, T. (1978). Selecting the K-th Element in X+Y and X_1+X_2+ ... +X_m. SIAM Journal on Computing, 7(2), 147-153.
x <- rnorm(100)
y <- runif(100)
medianDiff(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.