I currently have a problem, where I want to compare two 1D distributions. I my case I am trying to find how much I have to move one of the distribution to turn it into another, so I would use the earth movers distance for comparison. However I am also interested in the actual direction which the distribution is moved to be turned into another.
Is there a directed version of the earth movers distance in 1D?
To be more precise I have two distribution f : {1...N} -> |R
and g : {1...N} -> |R
I have to turn into each other. Now I want to also multiply the amount of dirt moved from bins in f
to bins in g
, but I want to account for the diretion. I.e. if "dirt" is moved from bin x
to bin y
I want to multiply the amount I have moved by x-y
instead of d(x,y)
as in the standard earth movers distance. Then I want to find the the movement for which the total amount of moved earth is minimised.
Is there a known algorithm which I can use for this? I think I should be able to modify the original Hungarian algorithm for this, but I am not sure yet how to do this, since I have never used this algorithm before.