All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
prob_util.cpp File Reference
#include <prob_cpp/prob_util.h>
#include <m_cpp/m_vector.h>
#include <m_cpp/m_matrix.h>


 Classes and functions for dealing with trajectory files.


Vector kjb::log_normalize (const Vector &vec)
 normalize a probability vector in log space More...
Vector kjb::exponentiate (const Vector &vec)
 elementwise exponentiate a vector without normalizing More...
Vector kjb::log_normalize_and_exponentiate (const Vector &vec)
 normalize and exponentiate a vector of unnormalized log probabilities More...
Matrix kjb::log_normalize_and_exponentiate (const Matrix &mat)
 row-wise normalize and exponentiate a matrix of log probabilities More...
Matrix kjb::log_normalize_rows (const Matrix &mat)
 normalize the rows of a stochastic matrix in log space More...
Vector kjb::log_marginalize_over_rows (const Matrix &mat)
 marginalize across the rows of a matrix of log probabilities More...
Vector kjb::log_marginalize_over_cols (const Matrix &mat)
 marginalize down the columns of a matrix of log probabilities More...

Detailed Description

Colin Dawson