Commit b5b8564c authored by Romain Reuillon's avatar Romain Reuillon
Browse files

[Doc] fix: code snipets

parent ecf95db5
Pipeline #1202 passed with stages
in 33 minutes and 41 seconds
......@@ -47,7 +47,7 @@ In case you want to explore a stochastic model with a GA you can do:
evaluation = model,
termination = 100
)
""", header = model)
""")
......
......@@ -64,7 +64,7 @@ val myBlocksMinSize = Val[Int]
val myBlocksMaxSize = Val[Int]
val myGenerator =
RandomSpatialSamplingTask(
BlocksGridSpatialSamplingTask(
grid = myGrid,
gridSize = 10,
number = myBlocksNumber,
......
......@@ -57,7 +57,7 @@ In our case, the quantum of 10 percent is quite coarsed, so we make it 1 percent
val exploration =
ExplorationTask(
(density in (20.0 to 80.0 by 1.0)) x
(seed in (UniformDistribution[Int]() take 10))
(mySeed in (UniformDistribution[Int]() take 10))
)
""", header=variables)
......@@ -71,7 +71,7 @@ The change of regime clearly appears between 50% and 75% percent density, so we
val exploration =
ExplorationTask(
(density in (50.0 to 75.0 by 0.1)) x
(seed in (UniformDistribution[Int]() take 10))
(mySeed in (UniformDistribution[Int]() take 10))
)
""", header=variables)
......@@ -92,7 +92,7 @@ We now take densities within [50;70] and take 100 replications for each:
val exploration =
ExplorationTask(
(density in (50.0 to 70.0 by 0.1)) x
(seed in (UniformDistribution[Int]() take 100))
(mySeed in (UniformDistribution[Int]() take 100))
)""", header= variables)
We obtain the following results, displayed as boxplots every percent (but results are obtained for every 0.1% density) to emphasize the variations.
......
Markdown is supported
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