KJB
|
Approximates the gradient of a target distribution, evaluated at a certain location. The model in question must be a vector model. More...
#include <sample_real.h>
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 | |
Real_numerical_gradient (const Target_distribution &log_target, const Get_neighborhood &get_neighborhood) | |
Construct this functor. More... | |
Real_numerical_gradient (const Target_distribution &log_target, double neighborhood) | |
Construct this functor with a constant hood. 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 |
Approximates the gradient of a target distribution, evaluated at a certain location. The model in question must be a vector model.
typedef Parent::Get_neighborhood Real_numerical_gradient< Model >::Get_neighborhood |
typedef Numerical_gradient<Model> Real_numerical_gradient< Model >::Parent |
typedef Parent::Target_distribution Real_numerical_gradient< Model >::Target_distribution |
|
inline |
Construct this functor.
log_target | The log of the target distribution. |
get_neighborhood | Mechanism to get the neighborhood of the model. |
|
inline |
Construct this functor with a constant hood.
log_target | The log of the target distribution. |
neighborhood | Neighborhood size. |