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)
Input variables#

Name

Type

Default

Description

friends_arr1

processedclist of triggers

friends_arr2

processedclist of triggers

c0_pos

Index of c0 in processedclists

score_func

utils.incoherent_score

Function that accepts coincident trigger(s) and returns score(s) (in the future maybe split into incoherent and coherent score funcs)

\*\*kwargs

Dictionary with extra parameters for score_func

Output variables#

Return annotation

Docstring type

Description

None

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