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
Add DynamicKuboToyabe fitting function #236
Conversation
namespace CurveFitting | ||
{ | ||
/** | ||
Provide Dynamic Kubo Toyabe function interface to IPeakFunction for muon scientists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't an IPeakFunction, could you correct the comment
|
||
|
||
// Zero hopping rate | ||
if (v == 0.0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very confusing indentation here on this line and the ones below, could you try running clang on this? or fix it yourself
Functionally fine, but needs some neatening up in the code |
Thanks for your comments, Nick. I will update the code according to your suggestions. |
Add DynamicKuboToyabe fitting function
Fixes trac issue #9556
For tester: Open the muon analysis interface and load one of the muon datasets attached in the trac ticket. Set Alpha=0.96 in the first row in "Pair Table", in "Grouping Options" tab, and hit "Plot". Go to "Data Analysis" and add "DynamicKuboToyabe" fitting function. You should be able to obtain a good fit if you fix the Field parameter to 0 (otherwise an exception will be raised, as the DKT function for non-zero magnetic field will be implemented in ticket #11086). Play with different fitting ranges and the other dataset attached.