Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIBP-Hummer
BioEM
Commits
b5f02160
Commit
b5f02160
authored
Jun 14, 2016
by
Pilar Cossio
Browse files
Fixing Norm in B prior
parent
37f46999
Changes
1
Hide whitespace changes
Inline
Side-by-side
param.cpp
View file @
b5f02160
...
...
@@ -1313,9 +1313,13 @@ int bioem_param::CalculateRefCTF()
// ********** Calculating normalized volumen element *********
if
(
!
printModel
){
param_device
.
volu
=
voluang
*
(
myfloat_t
)
param_device
.
GridSpaceCenter
*
pixelSize
*
(
myfloat_t
)
param_device
.
GridSpaceCenter
*
pixelSize
*
gridCTF_phase
*
gridCTF_amp
*
gridEnvelop
/
((
2.
f
*
(
myfloat_t
)
param_device
.
maxDisplaceCenter
+
1.
))
/
(
2.
f
*
(
myfloat_t
)
(
param_device
.
maxDisplaceCenter
+
1.
))
/
((
myfloat_t
)
numberGridPointsCTF_amp
*
gridCTF_amp
)
/
((
myfloat_t
)
numberGridPointsCTF_phase
*
gridCTF_phase
)
/
((
myfloat_t
)
numberGridPointsEnvelop
*
gridEnvelop
)
/
sqrt
(
2
*
M_PI
)
/
param_device
.
sigmaPriorbctf
;
// All priors (uniform or not) normalized to 1
// The volume is the grid-spacing of the parameter / normalization
// the order is angles, displacement, ctf amplitud (all uniform) then env b & phase (non uniform) the sqrt(2) cancel out (see SI)
param_device
.
volu
=
voluang
*
(
myfloat_t
)
param_device
.
GridSpaceCenter
*
pixelSize
*
(
myfloat_t
)
param_device
.
GridSpaceCenter
*
pixelSize
/
((
2.
f
*
(
myfloat_t
)
param_device
.
maxDisplaceCenter
+
1.
))
/
(
2.
f
*
(
myfloat_t
)
(
param_device
.
maxDisplaceCenter
+
1.
))
/
(
myfloat_t
)
numberGridPointsCTF_amp
*
gridEnvelop
*
gridCTF_phase
/
M_PI
/
param_device
.
sigmaPriorbctf
/
param_device
.
sigmaPriordefo
;
// cout << "VOLU " << param_device.volu << " " << gridCTF_amp << "\n";
// *** Number of total pixels***
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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