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

Approximates the gradient of a target distribution, evaluated at a certain location. The model in question must be a vector model. More...

#include <sample_vector.h>

Inheritance diagram for Vector_numerical_gradient< Model >:
Numerical_gradient< Model >

Public Types

typedef Numerical_gradient< Model > Parent
 
typedef Parent::Target_distribution Target_distribution
 
typedef Parent::Get_neighborhood Get_neighborhood
 
- Public Types inherited from Numerical_gradient< Model >
typedef Model_evaluator< Model >
::Type 
Target_distribution
 
typedef Move_model_parameter
< Model >::Type 
Move_parameter
 
typedef
Model_parameter_evaluator
< Model >::Type 
Get_neighborhood
 
typedef Model_dimension< Model >
::Type 
Get_dimension
 

Public Member Functions

 Vector_numerical_gradient (const Target_distribution &log_target, const Get_neighborhood &get_neighborhood)
 Construct this functor. More...
 
- Public Member Functions inherited from Numerical_gradient< Model >
 Numerical_gradient (const Target_distribution &log_target, const Move_parameter &move_param, const Get_neighborhood &get_neighbors, const Get_dimension &get_dim)
 Construct a gradient approximation functor. More...
 
kjb::Vector operator() (const Model &q) const
 Evaluates gradient at q. More...
 
kjb::Vector curvature (const Model &q) const
 
kjb::Vector gradient (const Model &q) const
 
void gradient_and_curvature (const Model &q, kjb::Vector &gradient, kjb::Vector &curvature) const
 

Detailed Description

template<typename Model>
class Vector_numerical_gradient< Model >

Approximates the gradient of a target distribution, evaluated at a certain location. The model in question must be a vector model.

Member Typedef Documentation

template<typename Model >
typedef Parent::Get_neighborhood Vector_numerical_gradient< Model >::Get_neighborhood
template<typename Model >
typedef Numerical_gradient<Model> Vector_numerical_gradient< Model >::Parent
template<typename Model >
typedef Parent::Target_distribution Vector_numerical_gradient< Model >::Target_distribution

Constructor & Destructor Documentation

template<typename Model >
Vector_numerical_gradient< Model >::Vector_numerical_gradient ( const Target_distribution log_target,
const Get_neighborhood get_neighborhood 
)
inline

Construct this functor.

Parameters
log_targetThe log of the target distribution.
get_neighborhoodMechanism to get the neighborhood of the model.

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