Skip to content

Commit

Permalink
Add support of Chebyshev. Refs #5306.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Aug 30, 2012
1 parent 3590872 commit ee45727
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/Framework/CurveFitting/src/ProcessBackground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "MantidAPI/MatrixWorkspace.h"
#include "MantidCurveFitting/BackgroundFunction.h"
#include "MantidCurveFitting/Polynomial.h"
#include "MantidCurveFitting/Chebyshev.h"

#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/predicate.hpp>
Expand Down Expand Up @@ -379,7 +380,9 @@ DECLARE_ALGORITHM(ProcessBackground)
}
else if (backgroundtype.compare("Chebyshev") == 0)
{
throw std::runtime_error("Chebyshev background has not been implemented.");
CurveFitting::Chebyshev cheby;
bkgdfunction = boost::dynamic_pointer_cast<CurveFitting::BackgroundFunction>
(boost::make_shared<CurveFitting::Chebyshev>(cheby));
}
else
{
Expand Down

0 comments on commit ee45727

Please sign in to comment.