KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
Constrained_target< Model > Class Template Reference

Adapts a target distribution to be one with bounds. More...

#include <sample_default.h>

Public Member Functions

 Constrained_target (const Target &target, const Get_upper_bounds &get_upper, const Get_lower_bounds &get_lower)
 Construct this target distribution. More...
 
double operator() (const Model &m) const
 Apply the target distribution to a model. More...
 
kjb::Vector get_upper_bounds (const Model &m) const
 Return the vector of upper bounds for a given model. More...
 
kjb::Vector get_lower_bounds (const Model &m) const
 Return the vector of lower bounds for a given model. More...
 

Detailed Description

template<typename Model>
class Constrained_target< Model >

Adapts a target distribution to be one with bounds.

Constructor & Destructor Documentation

template<typename Model >
Constrained_target< Model >::Constrained_target ( const Target &  target,
const Get_upper_bounds &  get_upper,
const Get_lower_bounds &  get_lower 
)
inline

Construct this target distribution.

Parameters
targetThe original target distribution.
get_upperMechanism to get the upper bounds for a model.
get_lowerMechanism to get the lower bounds for a model.

Member Function Documentation

template<typename Model >
kjb::Vector Constrained_target< Model >::get_lower_bounds ( const Model &  m) const
inline

Return the vector of lower bounds for a given model.

template<typename Model >
kjb::Vector Constrained_target< Model >::get_upper_bounds ( const Model &  m) const
inline

Return the vector of upper bounds for a given model.

template<typename Model >
double Constrained_target< Model >::operator() ( const Model &  m) const
inline

Apply the target distribution to a model.


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