R/auxiliary_compute.R

Defines functions aux_emd

# AUXILIARY FUNCTIONS FOR GENERIC COMPUTATION
#
# aux_emd : solve the POT-style emd problem - emd(a,b,C)





# aux_emd -----------------------------------------------------------------
#' @keywords internal
#' @noRd
aux_emd <- function(a,b,C){
  return(as.matrix(wass_lp(C, 1, a, b)$plan))
}

Try the T4transport package in your browser

Any scripts or data that you put into this service are public.

T4transport documentation built on June 8, 2025, 11:20 a.m.