queso-0.53.0
Protected Attributes | List of all members
QUESO::BaseScalarFunction< V, M > Class Template Referenceabstract

A templated (base) class for handling scalar functions. More...

#include <ScalarFunction.h>

Inheritance diagram for QUESO::BaseScalarFunction< V, M >:
Inheritance graph
[legend]
Collaboration diagram for QUESO::BaseScalarFunction< V, M >:
Collaboration graph
[legend]

Public Member Functions

Constructor/Destructor methods.
 BaseScalarFunction (const char *prefix, const VectorSet< V, M > &domainSet)
 Default constructor. More...
 
virtual ~BaseScalarFunction ()
 Destructor. More...
 
Mathematical methods.
const VectorSet< V, M > & domainSet () const
 Access to the protected attribute m_domainSet: domain set of the scalar function. More...
 
virtual double actualValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const =0
 Actual value of the scalar function. More...
 
virtual double lnValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const =0
 Logarithm of the value of the scalar function. More...
 

Protected Attributes

const BaseEnvironmentm_env
 
std::string m_prefix
 
const VectorSet< V, M > & m_domainSet
 Domain set of the scalar function. More...
 

Detailed Description

template<class V = GslVector, class M = GslMatrix>
class QUESO::BaseScalarFunction< V, M >

A templated (base) class for handling scalar functions.

This class allows the mathematical definition of a scalar function such as: $ f: B \subset R \rightarrow R $. A function of one or more variables has always one-dimensional range. PDFs (marginal, joint) and CDFs are examples of scalar functions.

Definition at line 51 of file ScalarFunction.h.

Constructor & Destructor Documentation

template<class V, class M>
QUESO::BaseScalarFunction< V, M >::BaseScalarFunction ( const char *  prefix,
const VectorSet< V, M > &  domainSet 
)

Default constructor.

Instantiates an object of the class, i.e. a scalar function, given a prefix and its domain.

Definition at line 34 of file ScalarFunction.C.

36  : m_env(domainSet.env()),
37  m_prefix((std::string)(prefix) + "func_"),
39 {
40 }
const VectorSet< V, M > & m_domainSet
Domain set of the scalar function.
const BaseEnvironment & m_env
const VectorSet< V, M > & domainSet() const
Access to the protected attribute m_domainSet: domain set of the scalar function. ...
template<class V , class M >
QUESO::BaseScalarFunction< V, M >::~BaseScalarFunction ( )
virtual

Destructor.

Definition at line 44 of file ScalarFunction.C.

45 {
46 }

Member Function Documentation

template<class V = GslVector, class M = GslMatrix>
virtual double QUESO::BaseScalarFunction< V, M >::actualValue ( const V &  domainVector,
const V *  domainDirection,
V *  gradVector,
M *  hessianMatrix,
V *  hessianEffect 
) const
pure virtual
template<class V , class M >
const VectorSet< V, M > & QUESO::BaseScalarFunction< V, M >::domainSet ( ) const

Access to the protected attribute m_domainSet: domain set of the scalar function.

Definition at line 50 of file ScalarFunction.C.

Referenced by QUESO::StatisticalInverseProblem< P_V, P_M >::StatisticalInverseProblem().

51 {
52  return m_domainSet;
53 }
const VectorSet< V, M > & m_domainSet
Domain set of the scalar function.
template<class V = GslVector, class M = GslMatrix>
virtual double QUESO::BaseScalarFunction< V, M >::lnValue ( const V &  domainVector,
const V *  domainDirection,
V *  gradVector,
M *  hessianMatrix,
V *  hessianEffect 
) const
pure virtual

Member Data Documentation

template<class V = GslVector, class M = GslMatrix>
const VectorSet<V, M>& QUESO::BaseScalarFunction< V, M >::m_domainSet
protected

Domain set of the scalar function.

Definition at line 84 of file ScalarFunction.h.

template<class V = GslVector, class M = GslMatrix>
const BaseEnvironment& QUESO::BaseScalarFunction< V, M >::m_env
protected
template<class V = GslVector, class M = GslMatrix>
std::string QUESO::BaseScalarFunction< V, M >::m_prefix
protected

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

Generated on Thu Jun 11 2015 13:52:33 for queso-0.53.0 by  doxygen 1.8.5