Mantid
Loading...
Searching...
No Matches
Framework
CurveFitting
inc
MantidCurveFitting
CostFunctions
CostFuncRwp.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2018 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
9
//----------------------------------------------------------------------
10
// Includes
11
//----------------------------------------------------------------------
12
#include "
MantidCurveFitting/CostFunctions/CostFuncLeastSquares.h
"
13
#include "
MantidCurveFitting/EigenMatrix.h
"
14
#include "
MantidCurveFitting/EigenVector.h
"
15
16
namespace
Mantid
{
17
namespace
Kernel {
18
class
Logger;
19
}
20
namespace
CurveFitting {
21
class
SeqDomain;
22
class
ParDomain;
23
24
namespace
CostFunctions {
25
52
class
MANTID_CURVEFITTING_DLL
CostFuncRwp
:
public
CostFuncLeastSquares
{
53
public
:
55
CostFuncRwp
();
56
58
std::string
name
()
const override
{
return
"Rwp"
; }
59
61
std::string
shortName
()
const override
{
return
"Rwp"
; }
62
63
private
:
64
std::vector<double> getFitWeights(
API::FunctionValues_sptr
values)
const override
;
65
67
double
getWeight(
const
API::FunctionValues_sptr
&values,
size_t
i,
double
sqrtW = 1.0)
const
;
68
71
double
calSqrtW(
const
API::FunctionValues_sptr
&values)
const
;
72
73
friend
class
CurveFitting::SeqDomain
;
74
friend
class
CurveFitting::ParDomain
;
75
};
76
77
}
// namespace CostFunctions
78
}
// namespace CurveFitting
79
}
// namespace Mantid
CostFuncLeastSquares.h
EigenMatrix.h
EigenVector.h
Mantid::CurveFitting::CostFunctions::CostFuncLeastSquares
Cost function for least squares.
Definition:
CostFuncLeastSquares.h:24
Mantid::CurveFitting::CostFunctions::CostFuncRwp
Cost function for Rwp = (sum_i (( obs_i - cal_i )/sigma_i)**2 ) / (sum_i (obs_i/sigma_i)**2)
Definition:
CostFuncRwp.h:52
Mantid::CurveFitting::CostFunctions::CostFuncRwp::name
std::string name() const override
Get name of minimizer.
Definition:
CostFuncRwp.h:58
Mantid::CurveFitting::CostFunctions::CostFuncRwp::shortName
std::string shortName() const override
Get short name of minimizer - useful for say labels in guis.
Definition:
CostFuncRwp.h:61
Mantid::CurveFitting::ParDomain
An implementation of SeqDomain for parallel cost function and derivatives computation.
Definition:
ParDomain.h:23
Mantid::CurveFitting::SeqDomain
An implementation of CompositeDomain.
Definition:
SeqDomain.h:30
Mantid::API::FunctionValues_sptr
std::shared_ptr< FunctionValues > FunctionValues_sptr
typedef for a shared pointer
Definition:
FunctionValues.h:108
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition:
AbsorptionCorrection.h:18
Generated on Tue Jan 3 2023 11:57:26 for Mantid by
1.9.5