.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_design_of_experiments/plot_probabilistic_design.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_design_of_experiments_plot_probabilistic_design.py: Probabilistic design of experiments =================================== .. GENERATED FROM PYTHON SOURCE LINES 7-8 In this example we are going to expose the available probabilistic design of experiments generated according to a specified distribution and a specified number of points. .. GENERATED FROM PYTHON SOURCE LINES 10-13 .. code-block:: Python import openturns as ot import openturns.viewer as otv .. GENERATED FROM PYTHON SOURCE LINES 14-15 Create the target distribution .. GENERATED FROM PYTHON SOURCE LINES 15-18 .. code-block:: Python distribution = ot.Normal(2) N = 300 .. GENERATED FROM PYTHON SOURCE LINES 19-20 1. Monte Carlo .. GENERATED FROM PYTHON SOURCE LINES 20-25 .. code-block:: Python experiment = ot.MonteCarloExperiment(distribution, N) sample = experiment.generate() graph = ot.Cloud(sample) view = otv.View(graph) .. image-sg:: /auto_design_of_experiments/images/sphx_glr_plot_probabilistic_design_001.svg :alt: plot probabilistic design :srcset: /auto_design_of_experiments/images/sphx_glr_plot_probabilistic_design_001.svg :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 26-27 2. LHS .. GENERATED FROM PYTHON SOURCE LINES 27-32 .. code-block:: Python experiment = ot.LHSExperiment(distribution, N) sample = experiment.generate() graph = ot.Cloud(sample) view = otv.View(graph) .. image-sg:: /auto_design_of_experiments/images/sphx_glr_plot_probabilistic_design_002.svg :alt: plot probabilistic design :srcset: /auto_design_of_experiments/images/sphx_glr_plot_probabilistic_design_002.svg :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 33-34 Display all figures .. GENERATED FROM PYTHON SOURCE LINES 34-35 .. code-block:: Python otv.View.ShowAll() .. _sphx_glr_download_auto_design_of_experiments_plot_probabilistic_design.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_probabilistic_design.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_probabilistic_design.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_probabilistic_design.zip `