Skip to content

Commit fb0548f

Browse files
committed
delete using OptimalTransport
1 parent bda3835 commit fb0548f

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/eigROT_Distance.jl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -85,27 +85,3 @@ function ROT_Distance(A::Any, B::Any, Q::SparseMatrixCSC{Int64,Int64};
8585
end
8686
return dis
8787
end
88-
89-
90-
using OptimalTransport
91-
"""
92-
eigEMD_Distance(P, C)
93-
94-
EIGEMD\\_DISTANCE computes the EMD distance matrix of P's column vectors on a graph.
95-
96-
# Input Argument
97-
- `P::Matrix{Float64}`: a matrix whose columns are probability measures.
98-
- `C::Matrix{Float64}`: the cost matrix, which is the ground metric between pairwise nodes.
99-
100-
# Output Argument
101-
- `dis::Matrix{Float64}`: distance matrix, dis[i,j] = d\\_EMD(pᵢ, pⱼ).
102-
103-
"""
104-
function eigEMD_Distance(P, C)
105-
n = size(P,2)
106-
dis = zeros(n,n)
107-
for i = 1:n-1, j = i+1:n
108-
dis[i,j] = emd2(P[:,i], P[:,j], C)
109-
end
110-
return dis + dis'
111-
end

0 commit comments

Comments
 (0)