ROL
|
#include <ROL_SampleGenerator.hpp>
Public Member Functions | |
virtual | ~SampleGenerator () |
SampleGenerator (Teuchos::RCP< BatchManager< Real > > &bman) | |
SampleGenerator (const SampleGenerator< Real > &sampler) | |
virtual void | update (const Vector< Real > &x) |
virtual int | start (void) |
virtual Real | computeError (std::vector< Real > &vals) |
virtual Real | computeError (std::vector< Teuchos::RCP< Vector< Real > > > &vals, const Vector< Real > &x) |
virtual void | refine (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 | barrier (void) const |
Protected Member Functions | |
void | setPoints (std::vector< std::vector< Real > > &p) |
void | setWeights (std::vector< Real > &w) |
Private Attributes | |
int | begin_ |
Teuchos::RCP< BatchManager < Real > > | bman_ |
std::vector< std::vector< Real > > | points_ |
std::vector< Real > | weights_ |
Definition at line 54 of file ROL_SampleGenerator.hpp.
|
inlinevirtual |
Definition at line 72 of file ROL_SampleGenerator.hpp.
|
inline |
Definition at line 73 of file ROL_SampleGenerator.hpp.
|
inline |
Definition at line 74 of file ROL_SampleGenerator.hpp.
|
inlineprotected |
Definition at line 62 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::points_.
Referenced by ROL::MonteCarloGenerator< Real >::refine(), ROL::MonteCarloGenerator< Real >::sample(), ROL::SparseGridGenerator< Real >::setSamples(), ROL::SparseGridGenerator< Real >::updateSamples(), and ROL::UserInputGenerator< Real >::UserInputGenerator().
|
inlineprotected |
Definition at line 66 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::weights_.
Referenced by ROL::MonteCarloGenerator< Real >::refine(), ROL::MonteCarloGenerator< Real >::sample(), ROL::SparseGridGenerator< Real >::setSamples(), ROL::SparseGridGenerator< Real >::updateSamples(), and ROL::UserInputGenerator< Real >::UserInputGenerator().
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >, and ROL::SparseGridGenerator< Real >.
Definition at line 77 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::begin_.
Referenced by ROL::SparseGridGenerator< Real >::update(), and ROL::MonteCarloGenerator< Real >::update().
|
inlinevirtual |
Definition at line 81 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::begin_.
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >, and ROL::SparseGridGenerator< Real >.
Definition at line 85 of file ROL_SampleGenerator.hpp.
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >, and ROL::SparseGridGenerator< Real >.
Definition at line 89 of file ROL_SampleGenerator.hpp.
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >, ROL::UserInputGenerator< Real >, and ROL::SparseGridGenerator< Real >.
Definition at line 93 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::begin_, and ROL::SampleGenerator< Real >::numMySamples().
Referenced by ROL::MonteCarloGenerator< Real >::refine().
|
inlinevirtual |
Reimplemented in ROL::SparseGridGenerator< Real >.
Definition at line 97 of file ROL_SampleGenerator.hpp.
|
inlinevirtual |
Definition at line 99 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::weights_.
Referenced by ROL::SampleGenerator< Real >::refine().
|
inlinevirtual |
Definition at line 103 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::points_.
Referenced by ROL::MonteCarloGenerator< Real >::refine().
|
inlinevirtual |
Definition at line 107 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::weights_.
Referenced by ROL::SparseGridGenerator< Real >::computeError().
|
inline |
Definition at line 111 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
Referenced by ROL::MonteCarloGenerator< Real >::sample().
|
inline |
Definition at line 115 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
Referenced by ROL::MonteCarloGenerator< Real >::sample(), and ROL::SparseGridGenerator< Real >::splitSamples().
|
inline |
Definition at line 119 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
Referenced by ROL::SparseGridGenerator< Real >::computeError(), ROL::MonteCarloGenerator< Real >::computeError(), ROL::RiskMeasure< Real >::getGradient(), ROL::ExpUtility< Real >::getGradient(), ROL::CVaR< Real >::getGradient(), ROL::MeanVarianceFromTarget< Real >::getGradient(), ROL::MeanVariance< Real >::getGradient(), ROL::MeanDeviation< Real >::getGradient(), ROL::MeanDeviationFromTarget< Real >::getGradient(), ROL::ExpectationQuad< Real >::getGradient(), ROL::RiskMeasure< Real >::getHessVec(), ROL::ExpUtility< Real >::getHessVec(), ROL::CVaR< Real >::getHessVec(), ROL::MeanVarianceFromTarget< Real >::getHessVec(), ROL::MeanVariance< Real >::getHessVec(), ROL::MeanDeviationFromTarget< Real >::getHessVec(), ROL::MeanDeviation< Real >::getHessVec(), ROL::ExpectationQuad< Real >::getHessVec(), ROL::RiskMeasure< Real >::getValue(), ROL::ExpUtility< Real >::getValue(), ROL::CVaR< Real >::getValue(), ROL::MeanVarianceFromTarget< Real >::getValue(), ROL::MeanDeviation< Real >::getValue(), ROL::MeanVariance< Real >::getValue(), ROL::MeanDeviationFromTarget< Real >::getValue(), and ROL::ExpectationQuad< Real >::getValue().
|
inline |
Definition at line 123 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
|
inline |
Definition at line 127 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
|
private |
Definition at line 56 of file ROL_SampleGenerator.hpp.
Referenced by ROL::SampleGenerator< Real >::refine(), ROL::SampleGenerator< Real >::start(), and ROL::SampleGenerator< Real >::update().
|
private |
Definition at line 57 of file ROL_SampleGenerator.hpp.
Referenced by ROL::SampleGenerator< Real >::barrier(), ROL::SampleGenerator< Real >::batchID(), ROL::SampleGenerator< Real >::numBatches(), and ROL::SampleGenerator< Real >::sumAll().
|
private |
Definition at line 58 of file ROL_SampleGenerator.hpp.
Referenced by ROL::SampleGenerator< Real >::getMyPoint(), and ROL::SampleGenerator< Real >::setPoints().
|
private |
Definition at line 59 of file ROL_SampleGenerator.hpp.
Referenced by ROL::SampleGenerator< Real >::getMyWeight(), ROL::SampleGenerator< Real >::numMySamples(), and ROL::SampleGenerator< Real >::setWeights().