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
Oleksii Turkot
CrystFEL
Commits
802ba6d8
Commit
802ba6d8
authored
Aug 15, 2011
by
Thomas White
Browse files
partial_sim: Use Gaussian OSF distribution
parent
c2721f91
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/partial_sim.c
View file @
802ba6d8
...
...
@@ -316,12 +316,13 @@ int main(int argc, char *argv[])
double
osf
;
if
(
random
()
>
RAND_MAX
/
2
)
{
osf
=
1
.
0
;
}
else
{
osf
=
2
.
0
;
}
//
if ( random() > RAND_MAX/2 ) {
//
osf = 1.0;
//
} else {
//
osf = 2.0;
//
}
//STATUS("Image %i scale factor %f\n", i, osf);
osf
=
gaussian_noise
(
1
.
0
,
0
.
3
);
/* Set up a random orientation */
orientation
=
random_quaternion
();
...
...
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