1 //                                               -*- C++ -*-
2 /**
3  *  @brief Abstract top-level view of an monteCarloExperiment plane
4  *
5  *  Copyright 2005-2021 Airbus-EDF-IMACS-ONERA-Phimeca
6  *
7  *  This library is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU Lesser General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This library is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License
18  *  along with this library.  If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 #ifndef OPENTURNS_MONTECARLOEXPERIMENT_HXX
22 #define OPENTURNS_MONTECARLOEXPERIMENT_HXX
23 
24 #include "openturns/WeightedExperimentImplementation.hxx"
25 
26 BEGIN_NAMESPACE_OPENTURNS
27 
28 
29 
30 /**
31  * @class MonteCarloExperiment
32  *
33  * The class describes the probabilistic concept of monteCarloExperiment plan
34  */
35 class OT_API MonteCarloExperiment
36   : public WeightedExperimentImplementation
37 {
38   CLASSNAME
39 public:
40 
41 
42   /** Default constructor */
43   MonteCarloExperiment();
44 
45   /** Parameters constructor */
46   explicit MonteCarloExperiment(const UnsignedInteger size);
47 
48   /** Parameters constructor */
49   MonteCarloExperiment(const Distribution & distribution,
50                        const UnsignedInteger size);
51 
52   /** Virtual constructor */
53   MonteCarloExperiment * clone() const override;
54 
55   /** String converter */
56   String __repr__() const override;
57 
58   /* Here is the interface that all derived class must implement */
59 
60   /** Sample generation */
61   Sample generateWithWeights(Point & weightsOut) const override;
62 
63 protected:
64 
65 private:
66 
67 }; /* class MonteCarloExperiment */
68 
69 
70 END_NAMESPACE_OPENTURNS
71 
72 #endif /* OPENTURNS_MONTECARLOEXPERIMENT_HXX */
73