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_{MODWT}(\boldsymbol X_T, \boldsymbol Y_T)=\Big|||\widehat{\boldsymbol \theta}^{\boldsymbol X_T}_{WV}-
\widehat{\boldsymbol \theta}^{\boldsymbol Y_T}_{WV}||^2+||\widehat{\boldsymbol \theta}^{\boldsymbol X_T}_{WC}-
\widehat{\boldsymbol \theta}^{\boldsymbol Y_T}_{WC}||^2\Big|^{1/2},$$
where \(\widehat{\boldsymbol \theta}^{\boldsymbol X_T}_{WV}\) and \(\widehat{\boldsymbol \theta}^{\boldsymbol Y_T}_{WV}\) are vectors
containing the estimated wavelet variances within \(\boldsymbol X_T\) and \(\boldsymbol Y_T\), respectively, and
\(\widehat{\boldsymbol \theta}^{\boldsymbol X_T}_{WC}\) and \(\widehat{\boldsymbol \theta}^{\boldsymbol Y_T}_{WC}\) are vectors
containing the estimated wavelet correlations within \(\boldsymbol X_T\) and \(\boldsymbol Y_T\), respectively.