5.4.1.7. eqcorrscan.utils.clustering.distance_matrix¶
-
eqcorrscan.utils.clustering.
distance_matrix
(stream_list, allow_shift=False, shift_len=0, cores=1)[source]¶ Compute distance matrix for waveforms based on cross-correlations.
Function to compute the distance matrix for all templates - will give distance as 1-abs(cccoh), e.g. a well correlated pair of templates will have small distances, and an equally well correlated reverse image will have the same distance as a positively correlated image - this is an issue.
Parameters: Returns: ndarray - distance matrix