Mantid
Loading...
Searching...
No Matches
CostFuncUnweightedLeastSquares.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 {
13namespace CostFunctions {
14
26class MANTID_CURVEFITTING_DLL CostFuncUnweightedLeastSquares : public CostFuncLeastSquares {
27public:
29
30 std::string name() const override { return "Unweighted least squares"; }
31 std::string shortName() const override { return "Chi-sq-unw."; }
32
33protected:
34 void calActiveCovarianceMatrix(EigenMatrix &covar, double epsrel) override;
35 std::vector<double> getFitWeights(API::FunctionValues_sptr values) const override;
36
37 double getResidualVariance() const;
38};
39
40} // namespace CostFunctions
41} // namespace CurveFitting
42} // namespace Mantid
In contrast to CostFuncLeastSquares, this variant of the cost function assumes that there are no weig...
std::string shortName() const override
Get short name of minimizer - useful for say labels in guis.
A wrapper around Eigen::Matrix.
Definition: EigenMatrix.h:33
std::shared_ptr< FunctionValues > FunctionValues_sptr
typedef for a shared pointer
Helper class which provides the Collimation Length for SANS instruments.