queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::TKFactoryMALA< DerivedTK > Class Template Reference

#include <TKFactoryMALA.h>

Inheritance diagram for QUESO::TKFactoryMALA< DerivedTK >:
QUESO::TransitionKernelFactory QUESO::Factory< BaseTKGroup< GslVector, GslMatrix > >

Public Member Functions

 TKFactoryMALA (const std::string &name)
 
virtual ~TKFactoryMALA ()
 
- Public Member Functions inherited from QUESO::TransitionKernelFactory
 TransitionKernelFactory (const std::string &name)
 
virtual ~TransitionKernelFactory ()
 
- Public Member Functions inherited from QUESO::Factory< BaseTKGroup< GslVector, GslMatrix > >
virtual ~Factory ()
 

Protected Member Functions

virtual SharedPtr< BaseTKGroup
< GslVector, GslMatrix >
>::Type 
build_tk ()
 
- Protected Member Functions inherited from QUESO::Factory< BaseTKGroup< GslVector, GslMatrix > >
 Factory (const std::string &name)
 

Additional Inherited Members

- Static Public Member Functions inherited from QUESO::TransitionKernelFactory
static void set_vectorspace (const VectorSpace< GslVector, GslMatrix > &v)
 
static void set_dr_scales (const std::vector< double > &scales)
 
static void set_pdf_synchronizer (const ScalarFunctionSynchronizer< GslVector, GslMatrix > &synchronizer)
 
static void set_initial_cov_matrix (GslMatrix &cov_matrix)
 
static void set_options (const MhOptionsValues &options)
 
static void set_target_pdf (const BaseJointPdf< GslVector, GslMatrix > &target_pdf)
 
- Static Public Member Functions inherited from QUESO::Factory< BaseTKGroup< GslVector, GslMatrix > >
static SharedPtr< BaseTKGroup
< GslVector, GslMatrix >
>::Type 
build (const std::string &name)
 
- Static Protected Member Functions inherited from QUESO::Factory< BaseTKGroup< GslVector, GslMatrix > >
static std::map< std::string,
Factory< BaseTKGroup
< GslVector, GslMatrix > > * > & 
factory_map ()
 
- Static Protected Attributes inherited from QUESO::TransitionKernelFactory
static const VectorSpace
< GslVector, GslMatrix > * 
m_vectorSpace = NULL
 
static const std::vector
< double > * 
m_dr_scales = NULL
 
static const
ScalarFunctionSynchronizer
< GslVector, GslMatrix > * 
m_pdf_synchronizer = NULL
 
static GslMatrixm_initial_cov_matrix = NULL
 
static const MhOptionsValuesm_options = NULL
 
static const BaseJointPdf
< GslVector, GslMatrix > * 
m_target_pdf = NULL
 

Detailed Description

template<class DerivedTK>
class QUESO::TKFactoryMALA< DerivedTK >

TKFactoryMALA class defintion. Implements the factory for the MALA transition kernel.

Definition at line 40 of file TKFactoryMALA.h.

Constructor & Destructor Documentation

template<class DerivedTK>
QUESO::TKFactoryMALA< DerivedTK >::TKFactoryMALA ( const std::string &  name)
inline

Constructor. Takes the name to be mapped.

Definition at line 46 of file TKFactoryMALA.h.

48  {}
TransitionKernelFactory(const std::string &name)
template<class DerivedTK>
virtual QUESO::TKFactoryMALA< DerivedTK >::~TKFactoryMALA ( )
inlinevirtual

Destructor. (Empty.)

Definition at line 53 of file TKFactoryMALA.h.

53 {}

Member Function Documentation

template<class DerivedTK>
virtual SharedPtr<BaseTKGroup<GslVector, GslMatrix> >::Type QUESO::TKFactoryMALA< DerivedTK >::build_tk ( )
inlineprotectedvirtual

Implements QUESO::TransitionKernelFactory.

Definition at line 56 of file TKFactoryMALA.h.

References QUESO::TransitionKernelFactory::m_dr_scales, QUESO::TransitionKernelFactory::m_initial_cov_matrix, QUESO::TransitionKernelFactory::m_options, QUESO::MhOptionsValues::m_prefix, and QUESO::TransitionKernelFactory::m_target_pdf.

57  {
59 
60  // Assume the problem is Bayesian
61  const BayesianJointPdf<GslVector, GslMatrix> * target_bayesian_pdf =
62  dynamic_cast<const BayesianJointPdf<GslVector, GslMatrix> *>(
63  this->m_target_pdf);
64 
65  new_tk.reset(new DerivedTK(this->m_options->m_prefix.c_str(),
66  *target_bayesian_pdf,
67  *(this->m_dr_scales),
68  *(this->m_initial_cov_matrix)));
69 
70  return new_tk;
71  }
static const BaseJointPdf< GslVector, GslMatrix > * m_target_pdf
static const MhOptionsValues * m_options
std::string m_prefix
Prefix for input file option names. Prepends all options for this class.
Definition of a shared pointer.
static const std::vector< double > * m_dr_scales

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

Generated on Tue Jun 5 2018 19:49:13 for queso-0.57.1 by  doxygen 1.8.5