Skip to content

Allow for computations where both directions of an edge have been calculated#22

Open
hannahbrucemacdonald wants to merge 2 commits intomainfrom
reversible-edges
Open

Allow for computations where both directions of an edge have been calculated#22
hannahbrucemacdonald wants to merge 2 commits intomainfrom
reversible-edges

Conversation

@hannahbrucemacdonald
Copy link
Collaborator

Description

form_edge_matrix now checks if the backwards edge has been run, and if so, uses a combination rule to use both to generate the matrix.

the matrix returned will be fully symmetric/antisymmetric

Todos

Notable points that this PR has either accomplished or will accomplish.

  • TODO 1

Questions

  • Question1

Status

  • Ready to go

@jchodera
Copy link
Contributor

Awesome!

But shouldn't it combine these in an uncertainty-aware manner? The optimal way to combine two independent measurements A1, A2 with standard errors dA1, dA2 is via the MLE:

A = w1 * A1 + w2*A2
dA = sqrt(1 / (dA1**(-2) + dA2**(-2))
w1 = dA1**(-2) / (dA1**(-2) + dA2**(-2))
w2 = dA2**(-2) / (dA1**(-2) + dA2**(-2))

The measurement with the smallest uncertainty will have greater weight.

@lgtm-com
Copy link

lgtm-com bot commented Oct 18, 2020

This pull request introduces 1 alert and fixes 2 when merging 888fff3 into 18e28c4 - view on LGTM.com

new alerts:

  • 1 for Syntax error

fixed alerts:

  • 2 for Unused local variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants