ROL
|
#include <ROL_SampleGenerator.hpp>
Public Member Functions | |
virtual | ~SampleGenerator () |
SampleGenerator (const ROL::Ptr< 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< ROL::Ptr< Vector< Real > > > &vals, const Vector< Real > &x) |
virtual void | refine (void) |
virtual void | setSamples (bool inConstructor=false) |
virtual int | numGlobalSamples (void) const |
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 | |
void | setPoints (std::vector< std::vector< Real > > &p) |
void | setWeights (std::vector< Real > &w) |
Private Attributes | |
int | begin_ |
ROL::Ptr< 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 75 of file ROL_SampleGenerator.hpp.
|
inlineprotected |
Definition at line 62 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::points_.
Referenced by ROL::SROMGenerator< Real >::pruneSamples(), ROL::MonteCarloGenerator< Real >::refine(), ROL::UserInputGenerator< Real >::sample(), and ROL::MonteCarloGenerator< Real >::sample().
|
inlineprotected |
Definition at line 66 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::weights_.
Referenced by ROL::SROMGenerator< Real >::pruneSamples(), ROL::MonteCarloGenerator< Real >::refine(), ROL::UserInputGenerator< Real >::sample(), and ROL::MonteCarloGenerator< Real >::sample().
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >.
Definition at line 79 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::begin_.
Referenced by ROL::MonteCarloGenerator< Real >::update().
|
inlinevirtual |
Definition at line 83 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::begin_.
Referenced by ROL::MeanSemiDeviation< Real >::getGradient(), ROL::MeanVariance< Real >::getGradient(), ROL::MeanDeviation< Real >::getGradient(), ROL::MeanSemiDeviation< Real >::getHessVec(), ROL::MeanVariance< Real >::getHessVec(), ROL::MeanDeviation< Real >::getHessVec(), ROL::MeanSemiDeviation< Real >::getValue(), ROL::MeanVariance< Real >::getValue(), and ROL::MeanDeviation< Real >::getValue().
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >.
Definition at line 87 of file ROL_SampleGenerator.hpp.
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >.
Definition at line 91 of file ROL_SampleGenerator.hpp.
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >, ROL::SROMGenerator< Real >, and ROL::UserInputGenerator< Real >.
Definition at line 95 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::begin_, and ROL::SampleGenerator< Real >::numMySamples().
Referenced by ROL::MonteCarloGenerator< Real >::refine().
|
inlinevirtual |
Definition at line 99 of file ROL_SampleGenerator.hpp.
|
inlinevirtual |
Reimplemented in ROL::MonteCarloGenerator< Real >, ROL::SROMGenerator< Real >, and ROL::UserInputGenerator< Real >.
Definition at line 101 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::weights_.
|
inlinevirtual |
Definition at line 105 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::weights_.
Referenced by ROL::MeanSemiDeviation< Real >::getGradient(), ROL::MeanVariance< Real >::getGradient(), ROL::MeanDeviation< Real >::getGradient(), ROL::MeanSemiDeviation< Real >::getHessVec(), ROL::MeanVariance< Real >::getHessVec(), ROL::MeanDeviation< Real >::getHessVec(), ROL::MeanSemiDeviation< Real >::getValue(), ROL::MeanVariance< Real >::getValue(), ROL::MeanDeviation< Real >::getValue(), ROL::SampleGenerator< Real >::print(), and ROL::SampleGenerator< Real >::refine().
|
inlinevirtual |
Definition at line 109 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::points_.
Referenced by ROL::MeanSemiDeviation< Real >::getGradient(), ROL::MeanVariance< Real >::getGradient(), ROL::MeanDeviation< Real >::getGradient(), ROL::MeanSemiDeviation< Real >::getHessVec(), ROL::MeanVariance< Real >::getHessVec(), ROL::MeanDeviation< Real >::getHessVec(), ROL::MeanSemiDeviation< Real >::getValue(), ROL::MeanVariance< Real >::getValue(), ROL::MeanDeviation< Real >::getValue(), ROL::SampleGenerator< Real >::print(), and ROL::MonteCarloGenerator< Real >::refine().
|
inlinevirtual |
Definition at line 113 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::weights_.
Referenced by ROL::MeanSemiDeviation< Real >::getGradient(), ROL::MeanVariance< Real >::getGradient(), ROL::MeanDeviation< Real >::getGradient(), ROL::MeanSemiDeviation< Real >::getHessVec(), ROL::MeanVariance< Real >::getHessVec(), ROL::MeanDeviation< Real >::getHessVec(), ROL::MeanSemiDeviation< Real >::getValue(), ROL::MeanVariance< Real >::getValue(), ROL::MeanDeviation< Real >::getValue(), and ROL::SampleGenerator< Real >::print().
|
inline |
Definition at line 117 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
Referenced by ROL::SampleGenerator< Real >::print(), and ROL::MonteCarloGenerator< Real >::sample().
|
inline |
Definition at line 121 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
Referenced by ROL::MonteCarloGenerator< Real >::MonteCarloGenerator(), and ROL::MonteCarloGenerator< Real >::sample().
|
inline |
Definition at line 125 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
Referenced by ROL::MonteCarloGenerator< Real >::computeError(), ROL::CoherentEntropicRisk< Real >::getGradient(), ROL::EntropicRisk< Real >::getGradient(), ROL::SmoothedPOE< Real >::getGradient(), ROL::BPOE< Real >::getGradient(), ROL::QuantileRadius< Real >::getGradient(), ROL::ExpectationQuadError< Real >::getGradient(), ROL::ExpectationQuadRegret< Real >::getGradient(), ROL::MeanSemiDeviationFromTarget< Real >::getGradient(), ROL::ExpectationQuadDeviation< Real >::getGradient(), ROL::ExpectationQuadRisk< Real >::getGradient(), ROL::KLDivergence< Real >::getGradient(), ROL::CVaR< Real >::getGradient(), ROL::MeanSemiDeviation< Real >::getGradient(), ROL::MixedCVaR< Real >::getGradient(), ROL::HMCR< Real >::getGradient(), ROL::RiskMeasure< Real >::getGradient(), ROL::FDivergence< Real >::getGradient(), ROL::MeanVariance< Real >::getGradient(), ROL::MeanDeviationFromTarget< Real >::getGradient(), ROL::MeanDeviation< Real >::getGradient(), ROL::RandVarFunctional< Real >::getGradient(), ROL::CoherentEntropicRisk< Real >::getHessVec(), ROL::EntropicRisk< Real >::getHessVec(), ROL::ExpectationQuadError< Real >::getHessVec(), ROL::ExpectationQuadRegret< Real >::getHessVec(), ROL::SmoothedPOE< Real >::getHessVec(), ROL::ExpectationQuadDeviation< Real >::getHessVec(), ROL::ExpectationQuadRisk< Real >::getHessVec(), ROL::MeanSemiDeviationFromTarget< Real >::getHessVec(), ROL::QuantileRadius< Real >::getHessVec(), ROL::BPOE< Real >::getHessVec(), ROL::CVaR< Real >::getHessVec(), ROL::KLDivergence< Real >::getHessVec(), ROL::MixedCVaR< Real >::getHessVec(), ROL::MeanSemiDeviation< Real >::getHessVec(), ROL::RiskMeasure< Real >::getHessVec(), ROL::FDivergence< Real >::getHessVec(), ROL::HMCR< Real >::getHessVec(), ROL::MeanVariance< Real >::getHessVec(), ROL::MeanDeviationFromTarget< Real >::getHessVec(), ROL::RandVarFunctional< Real >::getHessVec(), ROL::MeanDeviation< Real >::getHessVec(), ROL::CoherentEntropicRisk< Real >::getValue(), ROL::EntropicRisk< Real >::getValue(), ROL::SmoothedPOE< Real >::getValue(), ROL::BPOE< Real >::getValue(), ROL::QuantileRadius< Real >::getValue(), ROL::MeanSemiDeviationFromTarget< Real >::getValue(), ROL::ExpectationQuadError< Real >::getValue(), ROL::ExpectationQuadRegret< Real >::getValue(), ROL::ExpectationQuadRisk< Real >::getValue(), ROL::ExpectationQuadDeviation< Real >::getValue(), ROL::KLDivergence< Real >::getValue(), ROL::MeanSemiDeviation< Real >::getValue(), ROL::MixedCVaR< Real >::getValue(), ROL::CVaR< Real >::getValue(), ROL::HMCR< Real >::getValue(), ROL::FDivergence< Real >::getValue(), ROL::RiskMeasure< Real >::getValue(), ROL::MeanVariance< Real >::getValue(), ROL::MeanDeviationFromTarget< Real >::getValue(), ROL::MeanDeviation< Real >::getValue(), ROL::RandVarFunctional< Real >::getValue(), and ROL::SROMGenerator< Real >::pruneSamples().
|
inline |
Definition at line 129 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
|
inline |
Definition at line 133 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
Referenced by ROL::MonteCarloGenerator< Real >::sample().
|
inline |
Definition at line 137 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
|
inline |
Definition at line 141 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::bman_.
|
inline |
Definition at line 145 of file ROL_SampleGenerator.hpp.
References ROL::SampleGenerator< Real >::batchID(), ROL::SampleGenerator< Real >::getMyPoint(), ROL::SampleGenerator< Real >::getMyWeight(), and ROL::SampleGenerator< Real >::numMySamples().
|
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 >::broadcast(), ROL::SampleGenerator< Real >::getBatchManager(), 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 >::numGlobalSamples(), ROL::SampleGenerator< Real >::numMySamples(), and ROL::SampleGenerator< Real >::setWeights().