StochHMM  v0.34
Flexible Hidden Markov Model C++ Library and Application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions | Variables
stochMath.h File Reference
#include <math.h>
#include <iostream>
#include <vector>
#include <limits>
#include <stdint.h>
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  StochHMM
 traceback_path.h

Macros

#define SIZE_MAX   ((size_t)-1)
#define UINT16_MAX   65535
#define PI   3.145926535897932

Functions

template<typename T >
StochHMM::integerPower (T base, T exponent)
template<typename T >
StochHMM::addLog (T first, T second)
template<typename T >
void StochHMM::addVectorCombinatorial (std::vector< T > &result, std::vector< T > &lhs, std::vector< T > &rhs)
template<typename T >
void StochHMM::multiplyVectorCombinatorial (std::vector< T > &result, std::vector< T > &lhs, std::vector< T > &rhs)
template<typename T >
void StochHMM::addValueToVector (std::vector< T > &vec, T value)
template<typename T >
void StochHMM::multiplyValueToVector (std::vector< T > &vec, T value)
template<typename T >
void StochHMM::divideValueToVector (std::vector< T > &vec, T value)
void StochHMM::generateUnknownIndices (std::vector< size_t > &results, size_t alphabetSize, size_t order, size_t value)
template<class T >
StochHMM::sumVector (std::vector< T > &data)
 Sum the vector and return the sum.
template<class T >
StochHMM::sumVector (const std::vector< T > &data)
template<class T >
StochHMM::productVector (std::vector< T > &data)
 Multiply terms in vector and return the product.
template<typename T >
StochHMM::minVector (std::vector< T > &data)
template<typename T >
StochHMM::maxVector (std::vector< T > &data)
template<typename T >
StochHMM::avgVector (std::vector< T > &data)
template<typename T >
void StochHMM::logVector (std::vector< T > &data)
template<typename T >
void StochHMM::expVector (std::vector< T > &data)
template<typename T >
StochHMM::avgLogVector (std::vector< T > &data)
template<typename T >
void StochHMM::probVector (std::vector< T > &data)
template<typename T >
void StochHMM::addVector (std::vector< T > &lhs, std::vector< T > &rhs)
template<typename T >
void StochHMM::logProbVector (std::vector< T > &data)
double StochHMM::interpolate (std::pair< double, double > &a, std::pair< double, double > &b, double &cx)
 Interpolates the y value given cx and two surrounding points on either side a and b.
double StochHMM::extrapolate (std::pair< double, double > &a, std::pair< double, double > &b, double &cx)
 Extrapolates the Y value of point given by cx and two previous points.
template<class T >
StochHMM::min (std::vector< T > &set)
template<class T >
StochHMM::max (std::vector< T > &set)
template<class T >
StochHMM::construct_histogram (std::vector< T > &set, int N_bins)
template<class T >
StochHMM::smooth_histogram (std::vector< T > histo, int intervals, int window_size, int iterations)
float StochHMM::entropy (std::vector< float > &set)
 Shannon's Entropy in log(2) space.
double StochHMM::entropy (std::vector< double > &set)
float StochHMM::rel_entropy (std::vector< float > &set, std::vector< float > &set2)
double StochHMM::rel_entropy (std::vector< double > &set, std::vector< double > &set2)
double StochHMM::_integrate (double(*funct)(double, std::vector< double > &), double upper, double lower, std::vector< double > &param)
double StochHMM::integrate (double(*funct)(double, std::vector< double > &), double lower, double upper, std::vector< double > &param, double max_error=0.000001, double sum=0)
double StochHMM::simpson (double(*funct)(double, std::vector< double > &), double alpha, double beta, double lower, double upper)
double StochHMM::adapt_simpson (double(*funct)(double, double, double), double alpha, double beta, double lower, double upper, double max_error, double sum)
double StochHMM::summation (double(*funct)(int, std::vector< double > &), int, int, std::vector< double > &)
double StochHMM::igamma_upper (double s, double x)
double StochHMM::igamma_lower (double a, double x)
 http://wwwC/.rskey.org/CMS/index.php/the-library/11
double StochHMM::_igamma_lower (double, std::vector< double > &)
double StochHMM::rgammap (double s, double x)
double StochHMM::rgammaq (double s, double x)
double StochHMM::beta (double a, double b)
double StochHMM::ibeta (double x, double a, double b)
float StochHMM::betaPDF (float x, float a, float b)
double StochHMM::_ibeta (double, std::vector< double > &)
double StochHMM::ribeta (double x, double a, double b)
double StochHMM::factorial (double x)
double StochHMM::bin_coef (double n, double r)
float StochHMM::bin_coef (int n, int k)
double StochHMM::logit (double x)

Variables

const uint32_t StochHMM::POWER [32][128]

Macro Definition Documentation

#define PI   3.145926535897932

Definition at line 49 of file stochMath.h.

#define SIZE_MAX   ((size_t)-1)

Definition at line 39 of file stochMath.h.

#define UINT16_MAX   65535