19namespace CurveFitting {
50 const std::string
name()
const override {
return "PlotPeakByLogValue"; }
52 const std::string
summary()
const override {
return "Fits a number of spectra with the same function."; }
55 int version()
const override {
return 1; }
56 const std::vector<std::string>
seeAlso()
const override {
return {
"Fit"}; }
58 const std::string
category()
const override {
return "Optimization"; }
63 std::map<std::string, std::string> validateInputs()
override;
69 std::shared_ptr<Algorithm> runSingleFit(
bool createFitOutput,
bool outputCompositeMembers,
72 const std::string &exclude);
74 double calculateLogValue(
const std::string &logName,
const InputSpectraToFit &data);
82 void finaliseOutputWorkspaces(
bool createFitOutput,
const std::vector<API::MatrixWorkspace_sptr> &fitWorkspaces,
83 const std::vector<API::ITableWorkspace_sptr> ¶meterWorkspaces,
84 const std::vector<API::ITableWorkspace_sptr> &covarianceWorkspaces);
91 std::string getMinimizerString(
const std::string &wsName,
const std::string &wsIndex);
94 std::vector<std::string> getExclude(
const size_t numSpectra);
Base class from which all concrete algorithm classes should be derived.
Takes a workspace group and fits the same spectrum in all workspaces with the same function.
std::map< std::string, std::vector< std::string > > m_minimizerWorkspaces
Record of workspaces output by the minimizer.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
int version() const override
Algorithm's version for identification overriding a virtual method.
std::string m_baseName
Base name of output workspace.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Structure to identify data for fitting.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Helper class which provides the Collimation Length for SANS instruments.