# 5.4. clustering

Functions to cluster seismograms by a range of constraints.

copyright: | EQcorrscan developers.
license: | GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

## 5.4.1. Classes & Functions

`svd` | Compute the SVD of a number of templates.
`svd_to_stream` | Convert the singular vectors output by SVD to streams.
`cluster` | Cluster template waveforms based on average correlations.
`corr_cluster` | Group traces based on correlations above threshold with the stack.
`cross_chan_coherence` | Calculate cross-channel coherency.
`dist_mat_km` | Compute the distance matrix for all a catalog using epicentral separation.
`distance_matrix` | Compute distance matrix for waveforms based on cross-correlations.
`empirical_svd` | Empirical subspace detector generation function.
`extract_detections` | Extract waveforms associated with detections
`group_delays` | Group template waveforms according to their arrival times (delays).
`re_thresh_csv` | Remove detections by changing the threshold.
`space_cluster` | Cluster a catalog by distance only.
`space_time_cluster` | Cluster detections in space and time.