Mantid
Loading...
Searching...
No Matches
ProfileChiSquared1D.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2021 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
12#include "MantidKernel/System.h"
13
14namespace Mantid {
15namespace CurveFitting {
16namespace Algorithms {
17
21class MANTID_CURVEFITTING_DLL ProfileChiSquared1D : public IFittingAlgorithm {
22public:
24 const std::string name() const override;
25 int version() const override;
26 const std::vector<std::string> seeAlso() const override { return {"CalculateChiSquared", "Fit"}; }
27 const std::string summary() const override;
28
29private:
30 void initConcrete() override;
31 void execConcrete() override;
32 void unfixParameters();
33 void refixParameters();
34 EigenMatrix getCovarianceMatrix();
35 std::tuple<double, double> getChiSquaredRoots(const Functions::ChebfunBase_sptr &approximation,
36 std::vector<double> &coeffs, double qvalue, double rBound,
37 double lBound) const;
39 std::vector<size_t> m_fixedParameters;
40};
41
42} // namespace Algorithms
43} // namespace CurveFitting
44} // namespace Mantid
Profiles chi2 about its minimum to find parameter errors.
std::vector< size_t > m_fixedParameters
Cache indices of fixed parameters.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
A wrapper around Eigen::Matrix.
Definition: EigenMatrix.h:33
A base class for fitting algorithms.
std::shared_ptr< ChebfunBase > ChebfunBase_sptr
Definition: ChebfunBase.h:174
Helper class which provides the Collimation Length for SANS instruments.