D-HAT does not necessarily have a unique flow solution.
<DT><B>Returns:</B><DD>the distance<DT><B>See Also:</B><DD>"demo_FastEMD.java ../emd_hat.hpp ../demo_FastEMD#.m"</DL>
</DD>
</DL>
<HR>

<A NAME="dist(double[], double[], double[][], double, double[][])"><!-- --></A><H3>
dist</H3>
<PRE>
public static double <B>dist</B>(double[]&nbsp;P,
                          double[]&nbsp;Q,
                          double[][]&nbsp;C,
                          double&nbsp;extra_mass_penalty,
                        