View source: R/transport_plan.R
sinkhorn_pot | R Documentation |
Return the dual potentials for the Sinkhorn distance
sinkhorn_pot(
mass_x,
mass_y,
p = 2,
cost = NULL,
cost_a = NULL,
cost_b = NULL,
...
)
mass_x |
The empirical distribution of the first sample |
mass_y |
The empirical distribution of the second sample |
p |
The power to raise the cost by |
cost |
The cost matrix between first and second samples |
cost_a |
The cost matrix for the first sample |
cost_b |
The cost matrix for the second sample |
... |
Additional arguments including
|
A list with slots "f" and "g", the potentials of the rows and margins, respectively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.