|
Algorithm 2 Expanded Computation of Euclidean Distance Matrix |
-
1:
Input:
-
2:
▹ Initialize the Gram matrix
-
3:
for
to
n
do
-
4:
for ton do
-
5:
▹ Compute the Gram matrix
-
6:
end for
-
7:
end for
-
8:
▹ Initialize the distance matrix
-
9:
for
to
n
do
-
10:
for ton do
-
11:
▹ Compute the distance matrix
-
12:
end for
-
13:
end for
-
14:
Output:
D
|