|
ROL
|
#include <ROL_MonteCarloGenerator.hpp>
Inheritance diagram for ROL::MonteCarloGenerator< Real >:Public Member Functions | |
| MonteCarloGenerator (const int nSamp, const std::vector< Teuchos::RCP< Distribution< Real > > > &dist, const Teuchos::RCP< BatchManager< Real > > &bman, const bool use_SA=false, const bool adaptive=false, const int numNewSamps=0) | |
| MonteCarloGenerator (const int nSamp, std::vector< std::vector< Real > > &bounds, const Teuchos::RCP< BatchManager< Real > > &bman, const bool use_SA=false, const bool adaptive=false, const int numNewSamps=0) | |
| MonteCarloGenerator (const int nSamp, const std::vector< Real > &mean, const std::vector< Real > &std, const Teuchos::RCP< BatchManager< Real > > &bman, const bool use_SA=false, const bool adaptive=false, const int numNewSamps=0) | |
| void | update (const Vector< Real > &x) |
| Real | computeError (std::vector< Real > &vals) |
| Real | computeError (std::vector< Teuchos::RCP< Vector< Real > > > &vals, const Vector< Real > &x) |
| void | refine (void) |
Public Member Functions inherited from ROL::SampleGenerator< Real > | |
| virtual | ~SampleGenerator () |
| SampleGenerator (const Teuchos::RCP< BatchManager< Real > > &bman) | |
| SampleGenerator (const SampleGenerator< Real > &sampler) | |
| virtual int | start (void) |
| virtual void | setSamples (bool inConstructor=false) |
| virtual int | numMySamples (void) const |
| virtual std::vector< Real > | getMyPoint (const int i) const |
| virtual Real | getMyWeight (const int i) const |
| int | batchID (void) const |
| int | numBatches (void) const |
| void | sumAll (Real *input, Real *output, int dim) const |
| void | sumAll (Vector< Real > &input, Vector< Real > &output) const |
| void | broadcast (Real *input, int cnt, int root) const |
| void | barrier (void) const |
| void | print (const std::string &filename="samples", const int prec=12) const |
Private Member Functions | |
| Real | ierf (Real input) const |
| Real | random (void) const |
| std::vector< std::vector< Real > > | sample (int nSamp, bool store=true) |
| void | sample (void) |
Private Attributes | |
| int | nSamp_ |
| const bool | use_normal_ |
| const bool | use_SA_ |
| const bool | adaptive_ |
| const int | numNewSamps_ |
| std::vector< std::vector< Real > > | data_ |
| Real | sum_val_ |
| Real | sum_val2_ |
| Real | sum_ng_ |
| Real | sum_ng2_ |
| const bool | useDist_ |
| const std::vector< Teuchos::RCP< ROL::Distribution< Real > > > | dist_ |
Additional Inherited Members | |
Protected Member Functions inherited from ROL::SampleGenerator< Real > | |
| void | setPoints (std::vector< std::vector< Real > > &p) |
| void | setWeights (std::vector< Real > &w) |
Definition at line 53 of file ROL_MonteCarloGenerator.hpp.
|
inline |
Definition at line 155 of file ROL_MonteCarloGenerator.hpp.
References ROL::SampleGenerator< Real >::numBatches(), and ROL::MonteCarloGenerator< Real >::sample().
|
inline |
Definition at line 179 of file ROL_MonteCarloGenerator.hpp.
References ROL::SampleGenerator< Real >::numBatches(), and ROL::MonteCarloGenerator< Real >::sample().
|
inline |
Definition at line 214 of file ROL_MonteCarloGenerator.hpp.
References ROL::SampleGenerator< Real >::numBatches(), and ROL::MonteCarloGenerator< Real >::sample().
|
inlineprivate |
Definition at line 70 of file ROL_MonteCarloGenerator.hpp.
Referenced by ROL::MonteCarloGenerator< Real >::sample().
|
inlineprivate |
Definition at line 90 of file ROL_MonteCarloGenerator.hpp.
Referenced by ROL::MonteCarloGenerator< Real >::sample().
|
inlineprivate |
Definition at line 94 of file ROL_MonteCarloGenerator.hpp.
References ROL::SampleGenerator< Real >::batchID(), ROL::SampleGenerator< Real >::broadcast(), ROL::MonteCarloGenerator< Real >::ierf(), ROL::SampleGenerator< Real >::numBatches(), ROL::MonteCarloGenerator< Real >::random(), ROL::SampleGenerator< Real >::setPoints(), and ROL::SampleGenerator< Real >::setWeights().
|
inlineprivate |
Definition at line 150 of file ROL_MonteCarloGenerator.hpp.
Referenced by ROL::MonteCarloGenerator< Real >::MonteCarloGenerator(), ROL::MonteCarloGenerator< Real >::refine(), and ROL::MonteCarloGenerator< Real >::update().
|
inlinevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 246 of file ROL_MonteCarloGenerator.hpp.
References ROL::MonteCarloGenerator< Real >::sample(), and ROL::SampleGenerator< Real >::update().
|
inlinevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 257 of file ROL_MonteCarloGenerator.hpp.
References ROL::MonteCarloGenerator< Real >::nSamp_, and ROL::SampleGenerator< Real >::sumAll().
|
inlinevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 283 of file ROL_MonteCarloGenerator.hpp.
References ROL::MonteCarloGenerator< Real >::nSamp_, and ROL::SampleGenerator< Real >::sumAll().
|
inlinevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 311 of file ROL_MonteCarloGenerator.hpp.
References ROL::SampleGenerator< Real >::getMyPoint(), ROL::MonteCarloGenerator< Real >::numNewSamps_, ROL::SampleGenerator< Real >::refine(), ROL::MonteCarloGenerator< Real >::sample(), ROL::SampleGenerator< Real >::setPoints(), and ROL::SampleGenerator< Real >::setWeights().
|
private |
Definition at line 55 of file ROL_MonteCarloGenerator.hpp.
Referenced by ROL::MonteCarloGenerator< Real >::computeError().
|
private |
Definition at line 56 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 57 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 58 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 59 of file ROL_MonteCarloGenerator.hpp.
Referenced by ROL::MonteCarloGenerator< Real >::refine().
|
private |
Definition at line 60 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 62 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 63 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 64 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 65 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 67 of file ROL_MonteCarloGenerator.hpp.
|
private |
Definition at line 68 of file ROL_MonteCarloGenerator.hpp.
1.8.13