Public Member Functions | Protected Attributes
diagConstMetric Class Reference

#include <diagConstMetric.h>

Inheritance diagram for diagConstMetric:
constMetric baseHamiltonian flatFunnel

List of all members.

Public Member Functions

 diagConstMetric (int dim)
double T ()
 Return the kinetic energy.
void evolveQ (const double epsilon)
 Evolve the position through some time epsilon.
void bounceP (const VectorXd &normal)
VectorXd & massInv ()
 Return mass matrix.
void sampleP (Random &random)

Protected Attributes

VectorXd mMassInv
 Inverse mass matrix.

Detailed Description

Author:
Michael Betancourt

Abstract base class defining the interface for a Hamiltonian with quadratic kinetic energy defined on a Euclidean manifold with diagonal metric.


Constructor & Destructor Documentation

diagConstMetric::diagConstMetric ( int  dim) [explicit]

Constructor

Parameters:
dimDimension of the target space

Member Function Documentation

void diagConstMetric::bounceP ( const VectorXd &  normal) [virtual]

Evolve the momentum through a bounce off of a constraint surface

Parameters:
normalVector normal to constraint surface

Implements baseHamiltonian.

void diagConstMetric::sampleP ( Random &  random) [virtual]

Sample the momentum from the conditional distribution $ \pi \left( \mathbf{p} | \mathbf{q} \right) \propto \exp \left( - T \left( \mathbf{p}, \mathbf{q} \right) \right) $

Parameters:
randomExternal RandomLib generator

Implements baseHamiltonian.

Examples:
examples/main.cpp.

The documentation for this class was generated from the following files:
 All Classes Functions Variables