10 #ifndef ROL_MONTECARLOGENERATOR_HPP
11 #define ROL_MONTECARLOGENERATOR_HPP
18 template<
typename Real>
21 std::vector<std::vector<Real>>
data_;
22 const std::vector<Ptr<Distribution<Real>>>
dist_;
37 Real
ierf(Real input)
const;
39 std::vector<std::vector<Real>>
sample(
int nSamp,
bool store =
true,
bool refine =
false);
46 bool adaptive =
false,
48 int seed = 123454321);
51 std::vector<std::vector<Real>> &bounds,
54 bool adaptive =
false,
56 int seed = 123454321);
59 const std::vector<Real> &mean,
60 const std::vector<Real> &std,
63 bool adaptive =
false,
65 int seed = 123454321);
70 void refine(
void)
override;
Real ierf(Real input) const
MonteCarloGenerator(int nSamp, const std::vector< Ptr< Distribution< Real >>> &dist, const Ptr< BatchManager< Real >> &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0, int seed=123454321)
void refine(void) override
int numGlobalSamples(void) const override
Real computeError(std::vector< Real > &vals) override
Defines the linear algebra or vector space interface.
const std::vector< Ptr< Distribution< Real > > > dist_
void update(const Vector< Real > &x) override
std::vector< std::vector< Real > > sample(int nSamp, bool store=true, bool refine=false)
std::vector< std::vector< Real > > data_