coincidence_HM.get_best_candidate_segments#
Back to Module page
Summary#
Returns best trigger pair given two lists of friends. Doesn’t impose a time-delay constraint, assumes that time-delay is either irrelevant (bg), or taken care of by using the appropriate time_shift_tol
Signature#
def get_best_candidate_segments(friends_arr1, friends_arr2, c0_pos, score_func = utils.incoherent_score, **kwargs)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
processedclist of triggers |
||
|
processedclist of triggers |
||
|
Index of c0 in processedclists |
||
|
utils.incoherent_score |
Function that accepts coincident trigger(s) and returns score(s) (in the future maybe split into incoherent and coherent score funcs) |
|
|
Dictionary with extra parameters for score_func |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
tuple of len(2) with H1 trigger and L1 trigger |
Docstring#
Returns best trigger pair given two lists of friends. Doesn't impose a
time-delay constraint, assumes that time-delay is either irrelevant (bg),
or taken care of by using the appropriate time_shift_tol
:param friends_arr1: processedclist of triggers
:param friends_arr2: processedclist of triggers
:param c0_pos: Index of c0 in processedclists
:param score_func:
Function that accepts coincident trigger(s) and returns score(s)
(in the future maybe split into incoherent and coherent score funcs)
:param kwargs: Dictionary with extra parameters for score_func
:return: tuple of len(2) with H1 trigger and L1 trigger