coherent_score_mz_fast.dt2key#
Back to Module page
Summary#
Jitable key for the dictionary from the time delays This is clunky but faster than the nice expression by O(1) when vectorized
Signature#
def dt2key(dt, dt_sinc = DEFAULT_DT, dt_max = DEFAULT_DT_MAX)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
(ndelays = ndetectors-1) x nsamp array with time delays in milliseconds (should be 2d) |
||
|
DEFAULT_DT |
Time resolution in milliseconds |
|
|
DEFAULT_DT_MAX |
Maximum time delay in milliseconds |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
n_samp array of keys (always 1D) |
Docstring#
Jitable key for the dictionary from the time delays
This is clunky but faster than the nice expression by O(1) when vectorized
:param dt:
(ndelays = ndetectors-1) x nsamp array with time delays in milliseconds
(should be 2d)
:param dt_sinc: Time resolution in milliseconds
:param dt_max: Maximum time delay in milliseconds
:return: n_samp array of keys (always 1D)