Mantid
Loading...
Searching...
No Matches
CalculateCostFunction.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
10
11namespace Mantid {
12namespace CurveFitting {
13
14namespace CostFunctions {
15class CostFuncFitting;
16}
17
18namespace Algorithms {
19
24class MANTID_CURVEFITTING_DLL CalculateCostFunction : public IFittingAlgorithm {
25public:
26 const std::string name() const override;
27 int version() const override;
28 const std::vector<std::string> seeAlso() const override { return {"CalculateChiSquared", "Fit"}; }
29 const std::string summary() const override;
30
31private:
32 void initConcrete() override;
33 void execConcrete() override;
34
36 std::shared_ptr<CostFunctions::CostFuncFitting> m_costFunction;
37};
38
39} // namespace Algorithms
40} // namespace CurveFitting
41} // namespace Mantid
Calculate cost function for a function and a data set in a workspace.
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< CostFunctions::CostFuncFitting > m_costFunction
Cache for the cost function.
A semi-abstract class for a cost function for fitting functions.
A base class for fitting algorithms.
Helper class which provides the Collimation Length for SANS instruments.