Note
Go to the end to download the full example code.
Create a random design of experiments¶
Abstract¶
Random designs of experiments can be generated from probability distributions.
import openturns as ot
import openturns.viewer as otv
We create the underlying distribution: a standard 2-dimensional normal distribution.
distribution = ot.Normal(2)
size = 50
The Monte Carlo design of experiments¶
We build the experiment with the MonteCarloExperiment class :
We draw the design of experiments as a Cloud
Latin Hypercube Sampling¶
We build the LHS design of experiments with the LHSExperiment class :
experiment = ot.LHSExperiment(distribution, size)
sample = experiment.generate()
We draw the LHS design of experiments as a cloud :
Display all figures
OpenTURNS