Loading [MathJax]/jax/output/HTML-CSS/config.js
Mantid
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
w
x
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
a
b
e
f
i
l
m
o
s
t
u
w
Related Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
_
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
e
f
k
l
o
p
r
s
t
v
w
Macros
a
b
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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