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
iwr
amdis
Commits
89c30249
Commit
89c30249
authored
Apr 29, 2013
by
Praetorius, Simon
Browse files
some corrections in the extensions
parent
96760b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Functors.h
View file @
89c30249
...
...
@@ -271,7 +271,7 @@ struct Random : public AbstractFunction<double, WorldVector<double> >
double
operator
()(
const
WorldVector
<
double
>
&
x
)
const
{
return
mean
+
amplitude
*
((
std
::
rand
()
/
static_cast
<
double
>
(
RAND_MAX
))
-
0.5
);
return
mean
+
2.0
*
amplitude
*
((
std
::
rand
()
/
static_cast
<
double
>
(
RAND_MAX
))
-
0.5
);
}
private:
...
...
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