Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CT-INT-FGOTH
QMC_Master
Commits
256d9596
Commit
256d9596
authored
Aug 16, 2012
by
Florian Goth
Browse files
-Add an averaged MatsubaraGreensfunction.
-spacing
parent
be8ee609
Changes
3
Hide whitespace changes
Inline
Side-by-side
SDL_QMC_Master/qmc_master.cpp
View file @
256d9596
...
...
@@ -118,6 +118,7 @@ static const ObservableProperties propertycache[] =
{
"SmoothImaginaryGreensfunction"
,
false
,
VECTORFUNCTION
,
false
,
false
},
{
"SmoothImaginaryGreensfunction_averaged"
,
false
,
VECTORFUNCTION
,
false
,
false
},
{
"MatsubaraFrequencyGreensfunction"
,
true
,
VECTORFUNCTION
,
false
,
false
},
{
"MatsubaraFrequencyGreensfunction_averaged"
,
true
,
VECTORFUNCTION
,
false
,
false
},
{
"MatsubaraFrequencyGreensfunctionDerivative"
,
true
,
VECTORFUNCTION
,
false
,
false
},
{
"SpinSpinCorrelatedPart_Y"
,
false
,
VECTORFUNCTION
,
false
,
false
},
{
"SpinSpinCorrelatedPart_X"
,
false
,
VECTORFUNCTION
,
false
,
false
},
...
...
common/errordata.h
View file @
256d9596
...
...
@@ -121,7 +121,6 @@ public:
CovType
cov
;
};
template
<
typename
R
>
class
errordata_signed
{
private:
...
...
common/jackknife.h
View file @
256d9596
...
...
@@ -124,6 +124,7 @@ Cont the Container that is used for the Storage of the data
@param data an array of Containers with the stored samples
@param numcont the number of arrays pointed to by data
*/
template
<
typename
Func
,
typename
Cont
>
errordata
<
typename
Func
::
res_t
>
vecjackknife
(
Func
func
,
const
Cont
&
data
,
unsigned
int
numcont
,
bool
covariance
)
{
...
...
@@ -141,7 +142,6 @@ errordata<typename Func::res_t > vecjackknife(Func func, const Cont& data, unsig
x_J
=
norm
*
(
ElementType
(
data
.
size
())
*
mean
-
data
[
k
]);
jackbin
[
k
]
=
func
(
x_J
);
}
//calculate the jackknife average of the jackknife samples
RetType
jackmean
=
expectationvalue
(
jackbin
,
data
.
size
());
RetType
fun_mean
=
func
(
mean
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment