.. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_reliability_sensitivity_design_of_experiments_plot_gauss_product_experiment.py: Create a Gauss product design ============================= In this example we are going to create a deterministic weighted design experiment using Gauss product. .. code-block:: default from __future__ import print_function import openturns as ot import openturns.viewer as viewer from matplotlib import pylab as plt ot.Log.Show(ot.Log.NONE) Define the underlying distribution, degrees .. code-block:: default distribution = ot.ComposedDistribution([ot.Exponential(), ot.Triangular(-1.0, -0.5, 1.0)]) marginalDegrees = [15, 8] Create the design .. code-block:: default experiment = ot.GaussProductExperiment(distribution, marginalDegrees) sample = experiment.generate() Plot the design .. code-block:: default graph = ot.Graph("GP design", "x1", "x2", True, "") cloud = ot.Cloud(sample, "blue", "fsquare", "") graph.add(cloud) view = viewer.View(graph) plt.show() .. image:: /auto_reliability_sensitivity/design_of_experiments/images/sphx_glr_plot_gauss_product_experiment_001.png :alt: GP design :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.069 seconds) .. _sphx_glr_download_auto_reliability_sensitivity_design_of_experiments_plot_gauss_product_experiment.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_gauss_product_experiment.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_gauss_product_experiment.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_