📄 emd_mex.m
字号:
%EMD (Earth Movers Distance)
% e=emd(w1,w2,C)
% [e,F]=emd(w1,w2,C)
% w1 is the weight vector of the first signature (1 by n1)
% w2 is the weight vector of the second signature (1 by n2)
% C is the Cost matrix between signatures (n1 by n2)
% you can compute the cost matrix depending on you features
% e is the EMD distance
% F is the Flow, a matrix (m by 3) in which a row contains a flow
% in this order [from to amount]
% This is the MATLAB mex interface to the following implementation
% http://ai.stanford.edu/~rubner/emd/default.htm by Y. Rubner
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -