|
ROL
|
#include <ROL_UniformSimplexGenerator.hpp>
Inheritance diagram for ROL::UniformSimplexGenerator< Real >:Public Member Functions | |
| UniformSimplexGenerator (int nSamp, int dim, const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0) | |
Public Member Functions inherited from ROL::MonteCarloGenerator< Real > | |
| 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) | |
| MonteCarloGenerator (int nSamp, std::vector< std::vector< Real > > &bounds, const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0, int seed=123454321) | |
| MonteCarloGenerator (int nSamp, const std::vector< Real > &mean, const std::vector< Real > &std, const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0, int seed=123454321) | |
| MonteCarloGenerator (const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0, int seed=123454321) | |
| void | update (const Vector< Real > &x) override |
| Real | computeError (std::vector< Real > &vals) override |
| Real | computeError (std::vector< Ptr< Vector< Real > > > &vals, const Vector< Real > &x) override |
| void | refine (void) override |
| int | numGlobalSamples (void) const override |
Public Member Functions inherited from ROL::SampleGenerator< Real > | |
| virtual | ~SampleGenerator () |
| SampleGenerator (const ROL::Ptr< BatchManager< Real > > &bman) | |
| SampleGenerator (const SampleGenerator< Real > &sampler) | |
| virtual int | start (void) |
| virtual Real | computeError (std::vector< ROL::Ptr< Vector< Real > > > &vals, const Vector< Real > &x) |
| 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 |
| const ROL::Ptr< BatchManager< Real > > | getBatchManager (void) const |
| void | print (const std::string &filename="samples", const int prec=12) const |
Protected Member Functions | |
| std::vector< std::vector< Real > > | sample (int nSamp, bool store=true, bool refine=false) |
Protected Member Functions inherited from ROL::SampleGenerator< Real > | |
| void | setPoints (std::vector< std::vector< Real > > &p) |
| void | setWeights (std::vector< Real > &w) |
Private Attributes | |
| const int | dim_ |
Additional Inherited Members | |
Protected Attributes inherited from ROL::MonteCarloGenerator< Real > | |
| int | nSamp_ |
| const bool | use_SA_ |
| const bool | adaptive_ |
| const int | numNewSamps_ |
| const int | seed_ |
Definition at line 18 of file ROL_UniformSimplexGenerator.hpp.
| ROL::UniformSimplexGenerator< Real >::UniformSimplexGenerator | ( | int | nSamp, |
| int | dim, | ||
| const Ptr< BatchManager< Real > > & | bman, | ||
| bool | use_SA = false, |
||
| bool | adaptive = false, |
||
| int | numNewSamps = 0 |
||
| ) |
Definition at line 60 of file ROL_UniformSimplexGeneratorDef.hpp.
References ROL::SampleGenerator< Real >::numBatches(), and ROL::UniformSimplexGenerator< Real >::sample().
|
protectedvirtual |
Reimplemented from ROL::MonteCarloGenerator< Real >.
Definition at line 16 of file ROL_UniformSimplexGeneratorDef.hpp.
References ROL::SampleGenerator< Real >::batchID(), ROL::SampleGenerator< Real >::broadcast(), ROL::SampleGenerator< Real >::numBatches(), ROL::SampleGenerator< Real >::setPoints(), ROL::SampleGenerator< Real >::setWeights(), and zero.
Referenced by ROL::UniformSimplexGenerator< Real >::UniformSimplexGenerator().
|
private |
Definition at line 20 of file ROL_UniformSimplexGenerator.hpp.