Commit 02306cce authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

added uniformSampleAmount

parent 2c3b77ad
......@@ -17,8 +17,6 @@ functional = L2
#functional = Outflow
#functional = Goal
StochasticField = LogNormal
#StochasticField = Gaussian
......@@ -26,15 +24,16 @@ StochasticField = LogNormal
#Experiment = MLMCExperiment
Experiment = MLMCOverEpsilon
initLevels = 4, 5, 6
initLevels = 3, 4, 5
initSampleAmount = 12, 6, 3
uniformSampleAmount = 500
epsilon = 0.01
mcOnly = false
epsilonList = 0.01, 0.005, 0.001
maxLevel = 7
plevel = 3
maxLevel = 9
plevel = 2
MainVerbose = 1
MCVerbose = 2
......@@ -50,9 +49,9 @@ MLMCPlotting = 2
mean = 1.0
sigma = 1.0
norm_p = 2
lambda1 = 0.1
lambda2 = 0.1
alpha = 1.8
lambda1 = 0.15
lambda2 = 0.15
alpha = 1.0
evtol = 1e-10
# Other
......
......@@ -55,6 +55,13 @@ public:
if (maxLevel < initLevels.back()) Exit(
"\nLast element of initLevels has to be smaller or equal to maxLevel.\n")
int uniformSampleAmount;
config.get("uniformSampleAmount", uniformSampleAmount);
if (experimentName == "ConvergenceTest")
fill(initSampleAmount.begin(),
initSampleAmount.end(),
uniformSampleAmount);
initialize();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment