View source: R/kantorovich_CVX.R
kantorovich_CVX | R Documentation |
Kantorovich distance using the CVXR
package
kantorovich_CVX(
mu,
nu,
dist = NULL,
solution = FALSE,
stop_if_fail = TRUE,
solver = "ECOS",
...
)
mu |
(row margins) probability measure in numeric mode |
nu |
(column margins) probability measure in numeric mode |
dist |
matrix, the distance to be minimized on average;
if |
solution |
logical; if |
stop_if_fail |
logical; if |
solver |
the |
... |
other arguments passed to |
mu <- c(1/7,2/7,4/7)
nu <- c(1/4,1/4,1/2)
kantorovich_CVX(mu, nu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.