MMD_l | R Documentation |
Compute the MMD between two samples in linear time
MMD_l(y, x, var = 1, permute = FALSE)
y |
numeric vector, method for matrix input not yet implemented which means observations must be 1D. |
x |
numeric vector, method for matrix input not yet implemented which means observations must be 1D. |
var |
numeric kernel variance. |
permute |
logical Should |
Gretton, Arthur, et al. "A kernel two-sample test." Journal of Machine Learning Research 13.Mar (2012): 723-773.
y <- rnorm(2000) x <- rnorm(2000, 5) MMD_full <- MMD(y, x) MMD_linear <- MMD_l(y, x) MMD_full MMD_linear
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.