Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalculateTransmission error propagation #9854

Closed
mantid-builder opened this issue Feb 13, 2014 · 2 comments
Closed

CalculateTransmission error propagation #9854

mantid-builder opened this issue Feb 13, 2014 · 2 comments
Labels
SANS Issues and pull requests related to SANS
Milestone

Comments

@mantid-builder
Copy link
Collaborator

Original Reporter: Gesner Passos

While I was working on a ticket related to CalculateTransmission I've spotted an error on how we calculate the error propagation.


 // Take the log of each datapoint for fitting. Recalculate errors remembering that d(log(a))/da  = 1/a
      E[i] = std::abs(E[i]/Y[i]);
      Y[i] = std::log10(Y[i]);

In reality, d(log(a))/da = 1/(a*ln10) this means, that we should have this lines:

 // Take the log of each datapoint for fitting. Recalculate errors remembering that d(log(a))/da  = 1/(a*ln10)
      E[i] = 0.434*std::abs(E[i]/Y[i]);
      Y[i] = std::log10(Y[i]);
@mantid-builder
Copy link
Collaborator Author

This issue was originally trac ticket 9011

@mantid-builder
Copy link
Collaborator Author

http://trac.mantidproject.org/mantid/raw-attachment/ticket/9011/check9011.py
(uploaded by Gesner Passos on 2014-03-05T10:44:55)


@mantid-builder mantid-builder added the SANS Issues and pull requests related to SANS label Jun 3, 2015
@mantid-builder mantid-builder added this to the Release 3.2 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SANS Issues and pull requests related to SANS
Projects
None yet
Development

No branches or pull requests

1 participant