.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_reliability_sensitivity/design_of_experiments/plot_composite_experiment.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_reliability_sensitivity_design_of_experiments_plot_composite_experiment.py: Create a composite design of experiments ======================================== .. GENERATED FROM PYTHON SOURCE LINES 9-10 In this example we create a deterministic design experiment with the `Composite` class. .. GENERATED FROM PYTHON SOURCE LINES 12-18 .. code-block:: Python import openturns as ot import openturns.viewer as viewer from matplotlib import pylab as plt ot.Log.Show(ot.Log.NONE) .. GENERATED FROM PYTHON SOURCE LINES 19-20 Define position, scale .. GENERATED FROM PYTHON SOURCE LINES 20-23 .. code-block:: Python center = [0.5, 1.5] levels = [4, 8, 16] .. GENERATED FROM PYTHON SOURCE LINES 24-25 Create the design .. GENERATED FROM PYTHON SOURCE LINES 25-28 .. code-block:: Python experiment = ot.Composite(center, levels) sample = experiment.generate() .. GENERATED FROM PYTHON SOURCE LINES 29-30 Plot the design .. GENERATED FROM PYTHON SOURCE LINES 30-35 .. code-block:: Python graph = ot.Graph("Composite design", "x1", "x2", True, "") cloud = ot.Cloud(sample, "blue", "fsquare", "") graph.add(cloud) view = viewer.View(graph) plt.show() .. image-sg:: /auto_reliability_sensitivity/design_of_experiments/images/sphx_glr_plot_composite_experiment_001.png :alt: Composite design :srcset: /auto_reliability_sensitivity/design_of_experiments/images/sphx_glr_plot_composite_experiment_001.png :class: sphx-glr-single-img .. _sphx_glr_download_auto_reliability_sensitivity_design_of_experiments_plot_composite_experiment.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_composite_experiment.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_composite_experiment.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_composite_experiment.zip `