Given a collection of MTS, the function returns the pairwise distance matrix,
where the distance between two MTS \(\boldsymbol X_T\) and \(\boldsymbol Y_T\) is defined
as
$$d_{2dSVD}(\boldsymbol X_T, \boldsymbol Y_T)=\sum_{b=1}^s||{\boldsymbol M}^{\boldsymbol X_T}_{\bullet, b}-
{\boldsymbol M}^{\boldsymbol Y_T}_{\bullet, b}||,$$
where \({\boldsymbol M}^{\boldsymbol X_T}_{\bullet, b}\) and \({\boldsymbol M}^{\boldsymbol Y_T}_{\bullet, b}\) are the
\(b\)th columns of matrices \({\boldsymbol M}^{\boldsymbol X_T}\)
and \({\boldsymbol M}^{\boldsymbol Y_T}\), which are obtained by
decomposing the time series \(\boldsymbol X_T\) and \(\boldsymbol Y_T\), respectively,
by means of the 2dSVD procedure (average row-row and column-column covariance matrices
are taken into account), and \(s\) is the number of first retained eigenvectors
concerning the average column-column covariance matrices.