Adapts a Scene into a VectorModel for HMC sampling.
More...
#include <pt_scene_adapter.h>
|
| Scene_adapter (bool vis_off=false, bool infer_head=true) |
|
double | get (const Scene *s, size_t i) const |
| Get the ith element of a scene. More...
|
|
void | set (Scene *s, size_t i, double x) const |
| Set the ith element of a scene to x. More...
|
|
void | set (Scene *s, size_t i, size_t j, double x, double y) const |
| Set the ith element of a scene to x. More...
|
|
void | set (Scene *s, const Vector &x) const |
| Set all elements of s to specified values. More...
|
|
size_t | size (const Scene *s) const |
| Get the number of elements in this scene. More...
|
|
void | reset () const |
| Restart state. More...
|
|
std::pair< const Target *, size_t > | target_frame (const Scene *s, size_t i) const |
| Get target and frame corresponding to variable i. More...
|
|
bool | infer_head () const |
| Returns whether inferring head or not. More...
|
|
Adapts a Scene into a VectorModel for HMC sampling.
This class is made specifically for HMC sampling, which means it assumes that it will be called in a certain way. If used in a different way, it will most likely give incorrect results.
kjb::pt::Scene_adapter::Scene_adapter |
( |
bool |
vis_off = false , |
|
|
bool |
infer_head = true |
|
) |
| |
|
inline |
double kjb::pt::Scene_adapter::get |
( |
const Scene * |
s, |
|
|
size_t |
i |
|
) |
| const |
|
inline |
Get the ith element of a scene.
bool kjb::pt::Scene_adapter::infer_head |
( |
| ) |
const |
|
inline |
Returns whether inferring head or not.
void kjb::pt::Scene_adapter::reset |
( |
| ) |
const |
|
inline |
void kjb::pt::Scene_adapter::set |
( |
Scene * |
s, |
|
|
size_t |
i, |
|
|
double |
x |
|
) |
| const |
|
inline |
Set the ith element of a scene to x.
void kjb::pt::Scene_adapter::set |
( |
Scene * |
s, |
|
|
size_t |
i, |
|
|
size_t |
j, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| const |
|
inline |
Set the ith element of a scene to x.
void Scene_adapter::set |
( |
Scene * |
s, |
|
|
const Vector & |
x |
|
) |
| const |
Set all elements of s to specified values.
size_t kjb::pt::Scene_adapter::size |
( |
const Scene * |
s | ) |
const |
|
inline |
Get the number of elements in this scene.
std::pair<const Target*, size_t> kjb::pt::Scene_adapter::target_frame |
( |
const Scene * |
s, |
|
|
size_t |
i |
|
) |
| const |
|
inline |
Get target and frame corresponding to variable i.
The documentation for this class was generated from the following files: