Description Usage Arguments References Examples

This function returns the estimator for the two-sample MMD.

1 2 |

`y` |
either a numeric vector or matrix with number of rows equal to number of observations and number of columns equal to dimension of observations. |

`x` |
either a numeric vector or matrix with number of rows equal to number of observations and number of columns equal to dimension of observations. |

`y_kmmd` |
precomputed first term in MMD calculation. |

`var` |
matrix kernel variance covariance matrix. |

`bias` |
logical; if |

`threshold` |
numeric filter out values for exponentiation. |

`approx_exp` |
integer; if 0 the usual function for the exponential distribution is used; if 1 a much faster but less accurate version of the exponential distribution is used. |

`sigma` |
numeric DEPRECATED square root of variance. |

Gretton, Arthur, et al. "A kernel method for the two-sample-problem." Advances in neural information processing systems. 2007.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.