23namespace CurveFitting {
83 const std::string
name()
const override {
return "Fit"; }
85 const std::string
summary()
const override {
return "Fits a function to data in a Workspace"; }
87 int version()
const override {
return (1); }
88 const std::vector<std::string>
seeAlso()
const override {
89 return {
"FitGaussian",
"UserFunction1D",
"PlotPeakByLogValue",
"SplineBackground",
"EvaluateFunction"};
93 void initConcrete()
override;
94 void execConcrete()
override;
95 std::map<std::string, std::string> validateInputs()
override;
96 void readProperties();
97 void initializeMinimizer(
size_t maxIterations);
98 size_t runMinimizer();
99 void finalizeMinimizer(
size_t nIterations);
An interface for function minimizers.
A generic fitting algorithm.
std::shared_ptr< CostFunctions::CostFuncFitting > m_costFunction
The cost function.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
size_t m_maxIterations
Max number of iterations.
std::shared_ptr< API::IFuncMinimizer > m_minimizer
The minimizer.
A base class for fitting algorithms.
Helper class which provides the Collimation Length for SANS instruments.