run_myOT {ROKET} | R Documentation |
run_myOT
Description
Runs balanced or unbalanced optimal transport on two input vectors
Usage
run_myOT(
XX,
YY,
COST,
EPS,
LAMBDA1,
LAMBDA2 = NULL,
balance = FALSE,
conv = 1e-05,
max_iter = 3000,
verbose = TRUE,
show_iter = 50
)
Arguments
XX |
A numeric vector of positive masses |
YY |
A numeric vector of positive masses |
COST |
A numeric matrix of non-negative values
representing the costs to transport masses between
features of |
EPS |
A positive numeric value representing the tuning parameter for entropic regularization. |
LAMBDA1 |
A non-negative numeric value representing
the tuning parameter penalizing the distance between |
LAMBDA2 |
A non-negative numeric value representing
the tuning parameter penalizing the distance between |
balance |
Boolean set to |
conv |
A positive numeric value to determine
algorithmic convergence. The default value is |
max_iter |
A positive integer denoting the maximum iterations to run the algorithm. |
verbose |
Boolean value to display verbose function output. |
show_iter |
A positive integer to display iteration details
at multiples of |
Value
A R list containing the optimal transport matrix and associated distance metric.