round_transport_matrix: Round transportation matrix to feasible set

View source: R/sinkhorn.R

round_transport_matrixR Documentation

Round transportation matrix to feasible set

Description

Round transportation matrix to feasible set

Usage

round_transport_matrix(transport_matrix, mass_x, mass_y)

Arguments

transport_matrix

A transportation matrix returned by an approximate method

mass_x

The distribution of the first margin

mass_y

The distribution of the second margin

Value

Returns a transportation matrix projected to the feasible set.


approxOT documentation built on May 29, 2024, 3:12 a.m.