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
25f82b20
Commit
25f82b20
authored
May 14, 2021
by
niklas.baumgarten
Browse files
refactoring
parent
8a010958
Changes
2
Hide whitespace changes
Inline
Side-by-side
mlmc/tests/estimators/Test
Elliptic
MultilevelMonteCarlo.cpp
→
mlmc/tests/estimators/TestMultilevelMonteCarlo.cpp
View file @
25f82b20
#include "Test
Elliptic
MultilevelMonteCarlo.hpp"
#include "TestMultilevelMonteCarlo.hpp"
int
main
(
int
argc
,
char
**
argv
)
{
...
...
mlmc/tests/estimators/Test
Elliptic
MultilevelMonteCarlo.hpp
→
mlmc/tests/estimators/TestMultilevelMonteCarlo.hpp
View file @
25f82b20
#ifndef TEST
ELLIPTIC
MULTILEVELMONTECARLO_HPP
#define TEST
ELLIPTIC
MULTILEVELMONTECARLO_HPP
#ifndef TESTMULTILEVELMONTECARLO_HPP
#define TESTMULTILEVELMONTECARLO_HPP
#include "MultilevelEstimator.hpp"
#include "TestEnvironment.hpp"
struct
Test
Struct
{
struct
Test
Params
{
Levels
levels
{
3
,
4
,
5
};
Samples
samples
{
12
,
6
,
3
};
};
class
Test
Elliptic
MultilevelMonteCarlo
:
public
TestWithParam
<
Test
Struct
>
{
class
TestMultilevelMonteCarlo
:
public
TestWithParam
<
Test
Params
>
{
protected:
EstimatorMap
estimatorMap
;
MultilevelEstimator
mlmc
;
Test
Elliptic
MultilevelMonteCarlo
()
{
TestMultilevelMonteCarlo
()
{
CreateMonteCarloMap
(
estimatorMap
,
GetParam
().
levels
,
GetParam
().
samples
);
mlmc
=
MultilevelEstimator
(
estimatorMap
);
mlmc
.
Method
();
}
};
#endif //TEST
ELLIPTIC
MULTILEVELMONTECARLO_HPP
#endif //TESTMULTILEVELMONTECARLO_HPP
Write
Preview
Markdown
is supported
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