Visualization of optimal transport
Let be a set of locations. Each location is associated with a mass . Let . Similarly, define some other locations and . We assume that the total mass of and are equal, i.e. .
Loosely speaking, Optimal transport is an optimal way to move masses from to so that it minimizes the distance. Note that the masses can be splitted or merged during the “migration”. In the following figures, the heat-map represents the “blurring” mass of the plane.
Code: Jupyter Notebook
Reference: Optimal Transport by Gabriel Peyré