Skip to content

Commit

Permalink
Local checkpoint Refs #9782
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed Sep 19, 2014
1 parent 3b6f16b commit ad174be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/CurveFitting/CMakeLists.txt
Expand Up @@ -134,8 +134,8 @@ set ( INC_FILES
inc/MantidCurveFitting/DampingMinimizer.h
inc/MantidCurveFitting/DeltaFunction.h
inc/MantidCurveFitting/DerivMinimizer.h
inc/MantidCurveFitting/DiffSphere.h
inc/MantidCurveFitting/DiffRotDiscreteCircle.h
inc/MantidCurveFitting/DiffSphere.h
inc/MantidCurveFitting/DllConfig.h
inc/MantidCurveFitting/EndErfc.h
inc/MantidCurveFitting/ExpDecay.h
Expand Down
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/CurveFitting/src/AutoDiffTestAlg.cpp
Expand Up @@ -78,15 +78,15 @@ namespace
{
if ( type == "adept" )
{
//return IFunction_sptr(new Lorentzians::LorentzianAutoDiff);
return IFunction_sptr(new Lorentzians::LorentzianAutoDiff);
return IFunction_sptr(new Pearsons::PearsonVIIAutoDiff);
return IFunction_sptr(new GaussianAutoDiff);
} else if ( type == "num") {
//return IFunction_sptr(new Lorentzians::LorentzianNumDiff);
return IFunction_sptr(new Lorentzians::LorentzianNumDiff);
return IFunction_sptr(new Pearsons::PearsonVIINumDiff);
return IFunction_sptr(new GaussianNumDiff);
}
//return IFunction_sptr(new Lorentzians::LorentzianHandCoded);
return IFunction_sptr(new Lorentzians::LorentzianHandCoded);
return IFunction_sptr(new Pearsons::PearsonVIIHandCoded);
return IFunction_sptr(new GaussianHandCoded);
}
Expand Down
4 changes: 3 additions & 1 deletion Code/Mantid/Framework/CurveFitting/src/LorentzianFamily.cpp
Expand Up @@ -70,10 +70,12 @@ void LorentzianAutoDiff::function1DAutoDiff(const FunctionDomain1D &domain, std:
adept::adouble h = parameters.getParameter("Height");
adept::adouble x0 = parameters.getParameter("Centre");
adept::adouble s = parameters.getParameter("Gamma");
adept::adouble ssq = s * s;

for(size_t i = 0; i < y.size(); ++i) {
adept::adouble diff = domain[i] - x0;
y[i] = h * s * s / (diff*diff + s * s);

y[i] = h * ssq / (diff*diff + ssq);
}
}

Expand Down

0 comments on commit ad174be

Please sign in to comment.