1%feature("docstring") OT::MonteCarloExperiment
2"MonteCarlo experiment.
3
4Available constructors:
5    MonteCarloExperiment(*distribution, size*)
6
7    MonteCarloExperiment(*size*)
8
9Parameters
10----------
11distribution : :class:`~openturns.Distribution`
12    Distribution :math:`\mu` with an independent copula used to generate the
13    set of input data.
14size : positive int
15    Number :math:`cardI` of points that will be generated in the experiment.
16
17Notes
18-----
19MonteCarloExperiment is a random weighted design of experiments.
20The :meth:`generate` method generates points :math:`(\Xi_i)_{i \in I}`
21independently from the distribution :math:`\mu`. The weights associated to the
22points are all equal to :math:`1/\mathrm{card}\,I`. When the :meth:`generate` method is
23recalled, the generated sample changes.
24
25See also
26--------
27WeightedExperiment
28
29Examples
30--------
31>>> import openturns as ot
32>>> ot.RandomGenerator.SetSeed(0)
33>>> experiment = ot.MonteCarloExperiment(ot.Normal(2), 5)
34>>> print(experiment.generate())
35    [ X0        X1        ]
360 : [  0.608202 -1.26617  ]
371 : [ -0.438266  1.20548  ]
382 : [ -2.18139   0.350042 ]
393 : [ -0.355007  1.43725  ]
404 : [  0.810668  0.793156 ]"
41