ThreeB 1.1
Functions
forward_algorithm.h File Reference

Contains an implementation fo the forward algorithm. More...

#include <tr1/tuple>
#include <tr1/array>
#include <TooN/TooN.h>
#include <vector>
#include <cmath>

Go to the source code of this file.

Functions

double ln (double x)
template<int States, class Btype , class Otype >
std::tr1::tuple< double,
TooN::Vector
< Btype::NumParameters >
, TooN::Matrix
< Btype::NumParameters > > 
forward_algorithm_hessian (TooN::Matrix< States > A, TooN::Vector< States > pi, const Btype &B, const std::vector< Otype > &O, bool compute_deriv=1, bool compute_hessian=1)
template<int States, class Btype , class Otype >
double forward_algorithm (TooN::Matrix< States > A, TooN::Vector< States > pi, const Btype &B, const std::vector< Otype > &O)
template<int States, class Btype , class Otype >
std::pair< double,
TooN::Vector
< Btype::NumParameters > > 
forward_algorithm_deriv (TooN::Matrix< States > A, TooN::Vector< States > pi, const Btype &B, const std::vector< Otype > &O)
template<int States, class Btype , class Otype >
std::vector< std::tr1::array
< double, States > > 
forward_algorithm_delta (TooN::Matrix< States > A, TooN::Vector< States > pi, const Btype &B, const std::vector< Otype > &O)
template<int States, class Btype , class Otype >
void forward_algorithm_delta2 (TooN::Matrix< States > A, TooN::Vector< States > pi, const Btype &B, const std::vector< Otype > &O, std::vector< std::tr1::array< double, States > > &delta)
template<int States, class Btype , class Otype >
std::pair< std::vector
< std::tr1::array< double,
States > >, std::vector
< std::tr1::array< double,
States > > > 
forward_backward_algorithm (TooN::Matrix< States > A, TooN::Vector< States > pi, const Btype &B, const std::vector< Otype > &O)
template<class A , class Rng >
int select_random_element (const A &v, const double scale, Rng &rng)
template<int N, class Rng >
int sample_unscaled_log (std::tr1::array< double, N > a, Rng &rng)
template<int States, class StateType , class Rng >
std::vector< StateType > backward_sampling (TooN::Matrix< States > A, const std::vector< std::tr1::array< double, States > > &delta, Rng &rng)

Detailed Description

Contains an implementation fo the forward algorithm.

Definition in file forward_algorithm.h.