Create a Monte Carlo design of experimentsΒΆ
In this example we are going to create a MonteCarlo probabilistic design experiment.
[9]:
from __future__ import print_function
import openturns as ot
[10]:
# Define underlying distribution, size
distribution = ot.Normal(2)
size = 50
[11]:
# Create the design
experiment = ot.MonteCarloExperiment(distribution, size)
sample = experiment.generate()
[12]:
# Plot the design
graph = ot.Graph("MC design", "x1", "x2", True, "")
cloud = ot.Cloud(sample, "blue", "fsquare", "")
graph.add(cloud)
graph
[12]: