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

#include <ROL_TruncatedMeanQuadrangle.hpp>

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

Public Member Functions

 TruncatedMeanQuadrangle (Real beta)
 
 TruncatedMeanQuadrangle (ROL::ParameterList &parlist)
 
Real error (Real x, int deriv=0)
 Evaluate the scalar error function at x. More...
 
Real regret (Real x, int deriv=0)
 Evaluate the scalar regret function at x. More...
 
void check (void)
 Run default derivative tests for the scalar regret function. More...
 
- Public Member Functions inherited from ROL::ExpectationQuad< Real >
virtual ~ExpectationQuad (void)
 
 ExpectationQuad (void)
 

Private Member Functions

void parseParameterList (ROL::ParameterList &parlist)
 
void checkInputs (void) const
 

Private Attributes

Real beta_
 

Detailed Description

template<class Real>
class ROL::TruncatedMeanQuadrangle< Real >

Definition at line 18 of file ROL_TruncatedMeanQuadrangle.hpp.

Constructor & Destructor Documentation

template<class Real >
ROL::TruncatedMeanQuadrangle< Real >::TruncatedMeanQuadrangle ( Real  beta)
inline
template<class Real >
ROL::TruncatedMeanQuadrangle< Real >::TruncatedMeanQuadrangle ( ROL::ParameterList &  parlist)
inline

Member Function Documentation

template<class Real >
void ROL::TruncatedMeanQuadrangle< Real >::parseParameterList ( ROL::ParameterList &  parlist)
inlineprivate
template<class Real >
void ROL::TruncatedMeanQuadrangle< Real >::checkInputs ( void  ) const
inlineprivate
template<class Real >
Real ROL::TruncatedMeanQuadrangle< Real >::error ( Real  x,
int  deriv = 0 
)
inlinevirtual

Evaluate the scalar error function at x.

Parameters
[in]xis the scalar input
[in]derivis the derivative order

This function returns \(e(x)\) or a derivative of \(e(x)\).

Reimplemented from ROL::ExpectationQuad< Real >.

Definition at line 60 of file ROL_TruncatedMeanQuadrangle.hpp.

References ROL::TruncatedMeanQuadrangle< Real >::beta_, and zero.

Referenced by ROL::TruncatedMeanQuadrangle< Real >::regret().

template<class Real >
Real ROL::TruncatedMeanQuadrangle< Real >::regret ( Real  x,
int  deriv = 0 
)
inlinevirtual

Evaluate the scalar regret function at x.

Parameters
[in]xis the scalar input
[in]derivis the derivative order

This function returns \(v(x)\) or a derivative of \(v(x)\).

Implements ROL::ExpectationQuad< Real >.

Definition at line 75 of file ROL_TruncatedMeanQuadrangle.hpp.

References ROL::TruncatedMeanQuadrangle< Real >::error(), and zero.

Referenced by ROL::TruncatedMeanQuadrangle< Real >::check().

template<class Real >
void ROL::TruncatedMeanQuadrangle< Real >::check ( void  )
inlinevirtual

Run default derivative tests for the scalar regret function.

Reimplemented from ROL::ExpectationQuad< Real >.

Definition at line 82 of file ROL_TruncatedMeanQuadrangle.hpp.

References ROL::TruncatedMeanQuadrangle< Real >::beta_, ROL::ExpectationQuad< Real >::check(), ROL::TruncatedMeanQuadrangle< Real >::regret(), and zero.

Member Data Documentation

template<class Real >
Real ROL::TruncatedMeanQuadrangle< Real >::beta_
private

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