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

Add DynamicKuboToyabe fitting function #236

Merged
merged 26 commits into from Feb 20, 2015

Conversation

raquelalvarezbanos
Copy link
Contributor

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.

@NickDraper NickDraper self-assigned this Feb 18, 2015
namespace CurveFitting
{
/**
Provide Dynamic Kubo Toyabe function interface to IPeakFunction for muon scientists.
Copy link
Contributor

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) {
Copy link
Contributor

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

@NickDraper
Copy link
Contributor

Functionally fine, but needs some neatening up in the code

@raquelalvarezbanos
Copy link
Contributor Author

Thanks for your comments, Nick. I will update the code according to your suggestions.

NickDraper added a commit that referenced this pull request Feb 20, 2015
@NickDraper NickDraper merged commit a2f3876 into master Feb 20, 2015
@NickDraper NickDraper deleted the feature/9556_MuonDKT_function branch February 20, 2015 09:27
@peterfpeterson peterfpeterson modified the milestone: Release 3.4 Apr 23, 2015
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.

None yet

3 participants