Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
afc91c1e
Commit
afc91c1e
authored
Mar 25, 2021
by
niklas.baumgarten
Browse files
fix for test, should be removed asap
parent
3c6daaba
Changes
2
Hide whitespace changes
Inline
Side-by-side
mlmc/src/montecarlo/MonteCarlo.hpp
View file @
afc91c1e
...
...
@@ -76,6 +76,8 @@ public:
fineId
.
coarse
=
false
;
coarseId
.
level
=
level
;
coarseId
.
coarse
=
true
;
ctr
.
parallel
=
parallel
;
ctr
.
UpdateSampleCounter
(
dM
);
aggregate
.
parallel
=
parallel
;
aggregate
.
UpdateSampleCounter
(
dM
);
}
...
...
mlmc/src/montecarlo/datastructure/EmpiricMeasureLevelMaps.cpp
View file @
afc91c1e
...
...
@@ -14,6 +14,7 @@ void MonteCarloMap::UpdateSampleCounter(double epsilon) {
sqrt
(
mc
.
vars
.
Y
/
mc
.
avgs
.
Cost
)));
if
(
optimalM
==
1
)
optimalM
++
;
// Hack
mc
.
aggregate
.
UpdateSampleCounter
(
optimalM
-
mc
.
aggregate
.
M
);
mc
.
ctr
.
UpdateSampleCounter
(
optimalM
-
mc
.
ctr
.
M
);
}
}
...
...
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