The main class to be developed are:
-
Histogram2D: 2D dimensional histogram type
-
Config: execution parameters and options
Functional perspective:
-
distance, plan <- compute_wdp(Hist2D a, Hist2D, config option)
-
distance, plan <- compute_wd1(Hist2D a, Hist2D, config option)
-
flow graph <- build_network_L1(Hist2D a, Hist2D)
-
flow graph <- build_network_Linf(Hist2D a, Hist2D)
-
flow graph <- build_network_L2(Hist2D a, Hist2D, int L) // if L=N-1, exact
-
distance, plan <- solve_min_cost_flow(flow graph)