ROL
Public Member Functions | Private Types | Private Attributes | List of all members
ROL::MeanVariance< Real > Class Template Reference

#include <ROL_MeanVariance.hpp>

+ Inheritance diagram for ROL::MeanVariance< Real >:

Public Member Functions

 MeanVariance (Real order, Real coeff, Teuchos::RCP< PositiveFunction< Real > > &pf)
 
 MeanVariance (std::vector< Real > &order, std::vector< Real > &coeff, Teuchos::RCP< PositiveFunction< Real > > &pf)
 
 MeanVariance (Teuchos::ParameterList &parlist)
 
void reset (Teuchos::RCP< Vector< Real > > &x0, const Vector< Real > &x)
 
void reset (Teuchos::RCP< Vector< Real > > &x0, const Vector< Real > &x, Teuchos::RCP< Vector< Real > > &v0, const Vector< Real > &v)
 
void update (const Real val, const Real weight)
 
void update (const Real val, const Vector< Real > &g, const Real weight)
 
void update (const Real val, const Vector< Real > &g, const Real gv, const Vector< Real > &hv, const Real weight)
 
Real getValue (SampleGenerator< Real > &sampler)
 
void getGradient (Vector< Real > &g, SampleGenerator< Real > &sampler)
 
void getHessVec (Vector< Real > &hv, SampleGenerator< Real > &sampler)
 
- Public Member Functions inherited from ROL::RiskMeasure< Real >
virtual ~RiskMeasure ()
 
 RiskMeasure (void)
 

Private Types

typedef std::vector< Real >::size_type uint
 

Private Attributes

Teuchos::RCP< PositiveFunction< Real > > positiveFunction_
 
Teuchos::RCP< Vector< Real > > dualVector1_
 
Teuchos::RCP< Vector< Real > > dualVector2_
 
Teuchos::RCP< Vector< Real > > dualVector3_
 
Teuchos::RCP< Vector< Real > > dualVector4_
 
std::vector< Real > order_
 
std::vector< Real > coeff_
 
uint NumMoments_
 
std::vector< Real > weights_
 
std::vector< Real > value_storage_
 
std::vector< Teuchos::RCP< Vector< Real > > > gradient_storage_
 
std::vector< Teuchos::RCP< Vector< Real > > > hessvec_storage_
 
std::vector< Real > gradvec_storage_
 
bool firstReset_
 

Additional Inherited Members

- Protected Attributes inherited from ROL::RiskMeasure< Real >
Real val_
 
Real gv_
 
Teuchos::RCP< Vector< Real > > g_
 
Teuchos::RCP< Vector< Real > > hv_
 
Teuchos::RCP< Vector< Real > > dualVector_
 
bool firstReset_
 

Detailed Description

template<class Real>
class ROL::MeanVariance< Real >

Definition at line 58 of file ROL_MeanVariance.hpp.

Member Typedef Documentation

template<class Real >
typedef std::vector<Real>::size_type ROL::MeanVariance< Real >::uint
private

Definition at line 59 of file ROL_MeanVariance.hpp.

Constructor & Destructor Documentation

template<class Real >
ROL::MeanVariance< Real >::MeanVariance ( Real  order,
Real  coeff,
Teuchos::RCP< PositiveFunction< Real > > &  pf 
)
inline

Definition at line 83 of file ROL_MeanVariance.hpp.

template<class Real >
ROL::MeanVariance< Real >::MeanVariance ( std::vector< Real > &  order,
std::vector< Real > &  coeff,
Teuchos::RCP< PositiveFunction< Real > > &  pf 
)
inline

Definition at line 91 of file ROL_MeanVariance.hpp.

References ROL::MeanVariance< Real >::NumMoments_.

template<class Real >
ROL::MeanVariance< Real >::MeanVariance ( Teuchos::ParameterList &  parlist)
inline

Definition at line 104 of file ROL_MeanVariance.hpp.

References ROL::MeanVariance< Real >::NumMoments_.

Member Function Documentation

template<class Real >
void ROL::MeanVariance< Real >::reset ( Teuchos::RCP< Vector< Real > > &  x0,
const Vector< Real > &  x 
)
inlinevirtual

Reimplemented from ROL::RiskMeasure< Real >.

Definition at line 132 of file ROL_MeanVariance.hpp.

References ROL::RiskMeasure< Real >::reset().

Referenced by ROL::MeanVariance< Real >::reset().

template<class Real >
void ROL::MeanVariance< Real >::reset ( Teuchos::RCP< Vector< Real > > &  x0,
const Vector< Real > &  x,
Teuchos::RCP< Vector< Real > > &  v0,
const Vector< Real > &  v 
)
inlinevirtual
template<class Real >
void ROL::MeanVariance< Real >::update ( const Real  val,
const Real  weight 
)
inlinevirtual

Reimplemented from ROL::RiskMeasure< Real >.

Definition at line 157 of file ROL_MeanVariance.hpp.

template<class Real >
void ROL::MeanVariance< Real >::update ( const Real  val,
const Vector< Real > &  g,
const Real  weight 
)
inlinevirtual

Reimplemented from ROL::RiskMeasure< Real >.

Definition at line 163 of file ROL_MeanVariance.hpp.

References ROL::Vector< Real >::clone().

template<class Real >
void ROL::MeanVariance< Real >::update ( const Real  val,
const Vector< Real > &  g,
const Real  gv,
const Vector< Real > &  hv,
const Real  weight 
)
inlinevirtual

Reimplemented from ROL::RiskMeasure< Real >.

Definition at line 174 of file ROL_MeanVariance.hpp.

References ROL::Vector< Real >::clone().

template<class Real >
Real ROL::MeanVariance< Real >::getValue ( SampleGenerator< Real > &  sampler)
inlinevirtual
template<class Real >
void ROL::MeanVariance< Real >::getGradient ( Vector< Real > &  g,
SampleGenerator< Real > &  sampler 
)
inlinevirtual
template<class Real >
void ROL::MeanVariance< Real >::getHessVec ( Vector< Real > &  hv,
SampleGenerator< Real > &  sampler 
)
inlinevirtual

Member Data Documentation

template<class Real >
Teuchos::RCP<PositiveFunction<Real> > ROL::MeanVariance< Real >::positiveFunction_
private

Definition at line 62 of file ROL_MeanVariance.hpp.

template<class Real >
Teuchos::RCP<Vector<Real> > ROL::MeanVariance< Real >::dualVector1_
private

Definition at line 64 of file ROL_MeanVariance.hpp.

template<class Real >
Teuchos::RCP<Vector<Real> > ROL::MeanVariance< Real >::dualVector2_
private

Definition at line 65 of file ROL_MeanVariance.hpp.

template<class Real >
Teuchos::RCP<Vector<Real> > ROL::MeanVariance< Real >::dualVector3_
private

Definition at line 66 of file ROL_MeanVariance.hpp.

template<class Real >
Teuchos::RCP<Vector<Real> > ROL::MeanVariance< Real >::dualVector4_
private

Definition at line 67 of file ROL_MeanVariance.hpp.

template<class Real >
std::vector<Real> ROL::MeanVariance< Real >::order_
private

Definition at line 69 of file ROL_MeanVariance.hpp.

template<class Real >
std::vector<Real> ROL::MeanVariance< Real >::coeff_
private

Definition at line 70 of file ROL_MeanVariance.hpp.

template<class Real >
uint ROL::MeanVariance< Real >::NumMoments_
private
template<class Real >
std::vector<Real> ROL::MeanVariance< Real >::weights_
private

Definition at line 73 of file ROL_MeanVariance.hpp.

template<class Real >
std::vector<Real> ROL::MeanVariance< Real >::value_storage_
private

Definition at line 74 of file ROL_MeanVariance.hpp.

template<class Real >
std::vector<Teuchos::RCP<Vector<Real> > > ROL::MeanVariance< Real >::gradient_storage_
private

Definition at line 75 of file ROL_MeanVariance.hpp.

template<class Real >
std::vector<Teuchos::RCP<Vector<Real> > > ROL::MeanVariance< Real >::hessvec_storage_
private

Definition at line 76 of file ROL_MeanVariance.hpp.

template<class Real >
std::vector<Real> ROL::MeanVariance< Real >::gradvec_storage_
private

Definition at line 77 of file ROL_MeanVariance.hpp.

template<class Real >
bool ROL::MeanVariance< Real >::firstReset_
private

Definition at line 79 of file ROL_MeanVariance.hpp.


The documentation for this class was generated from the following file: