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

#include <TKFactoryLogitRandomWalk.h>

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

Public Member Functions

 TKFactoryLogitRandomWalk (const std::string &name)
 
virtual ~TKFactoryLogitRandomWalk ()
 
- 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::TKFactoryLogitRandomWalk< DerivedTK >

TKFactoryLogitRandomWalk class defintion. Implements a factory for random-walk type transition kernels along with a variable transformation to allow more efficient sampling for problems with parameters bounds in high-dimensional state spaces.

Definition at line 41 of file TKFactoryLogitRandomWalk.h.

Constructor & Destructor Documentation

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

Constructor. Takes the name to be mapped.

Definition at line 47 of file TKFactoryLogitRandomWalk.h.

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

Destructor. (Empty.)

Definition at line 54 of file TKFactoryLogitRandomWalk.h.

54 {}

Member Function Documentation

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

Implements QUESO::TransitionKernelFactory.

Definition at line 57 of file TKFactoryLogitRandomWalk.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.

58  {
60 
61  // Cast the domain to a box. Might this cast fail?
62  const BoxSubset<GslVector, GslMatrix> & boxSubset =
63  dynamic_cast<const BoxSubset<GslVector, GslMatrix> & >(
64  this->m_target_pdf->domainSet());
65 
66  new_tk.reset(new DerivedTK(this->m_options->m_prefix.c_str(),
67  boxSubset,
68  *(this->m_dr_scales),
69  *(this->m_initial_cov_matrix)));
70 
71  return new_tk;
72  }
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