queso-0.56.0
Public Member Functions | Protected Member Functions | List of all members
QUESO::TKFactoryLogitRandomWalk< DerivedTK > Class Template Reference

#include <TKFactoryLogitRandomWalk.h>

Inheritance diagram for QUESO::TKFactoryLogitRandomWalk< DerivedTK >:
Inheritance graph
[legend]
Collaboration diagram for QUESO::TKFactoryLogitRandomWalk< DerivedTK >:
Collaboration graph
[legend]

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 >
SharedPtr< BaseTKGroup< GslVector, GslMatrix > >::Type QUESO::TKFactoryLogitRandomWalk< DerivedTK >::build_tk ( )
protectedvirtual

Implements QUESO::TransitionKernelFactory.

Definition at line 33 of file TKFactoryLogitRandomWalk.C.

34 {
35  SharedPtr<BaseTKGroup<GslVector, GslMatrix> >::Type new_tk;
36 
37  // Cast the domain to a box. Might this cast fail?
38  const BoxSubset<GslVector, GslMatrix> & boxSubset =
39  dynamic_cast<const BoxSubset<GslVector, GslMatrix> & >(
40  this->m_target_pdf->domainSet());
41 
42  new_tk.reset(new DerivedTK(this->m_options->m_prefix.c_str(),
43  boxSubset,
44  *(this->m_dr_scales),
45  *(this->m_initial_cov_matrix)));
46 
47  return new_tk;
48 }
static const MhOptionsValues * m_options
static const BaseJointPdf< GslVector, GslMatrix > * m_target_pdf
std::string m_prefix
Prefix for input file option names. Prepends all options for this class.
static const std::vector< double > * m_dr_scales

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

Generated on Tue Nov 29 2016 10:53:14 for queso-0.56.0 by  doxygen 1.8.5