utils.match#
Back to Module page
Summary#
Computes match, or cosine, between waveforms
Signature#
def match(wfs_cos_1, wfs_cos_2, allow_shift = True, allow_phase = True, return_cov = False)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
n_wf x len(wf) array with whitened waveforms (can be vector if n_wf = 1) |
||
|
n_wf x len(wf) array with whitened waveforms (can be vector if n_wf = 1) |
||
|
True |
Flag to allow shifts when computing the match |
|
|
True |
Flag to allow phases when computing the match |
|
|
False |
Flag to return timeseries of complex match |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
If return cov, timeseries of complex match between the waveforms, else the match or cosine (defined as \|complex match\|) |
Docstring#
Computes match, or cosine, between waveforms
:param wfs_cos_1:
n_wf x len(wf) array with whitened waveforms (can be vector if n_wf = 1)
:param wfs_cos_2:
n_wf x len(wf) array with whitened waveforms (can be vector if n_wf = 1)
:param allow_shift: Flag to allow shifts when computing the match
:param allow_phase: Flag to allow phases when computing the match
:param return_cov: Flag to return timeseries of complex match
:return:
If return cov, timeseries of complex match between the waveforms, else
the match or cosine (defined as |complex match|)