helper functions for converting data types for HMM models More...
#include <hmm.h>Functions | |
| std::vector< double > | array2vec (double ary[], int len) |
| converts C array (of doubles) to std::vector of doubles More... | |
| std::vector< int > | array2vec (int ary[], int len) |
| converts C array (of ints) to std::vector of ints More... | |
| void | vec2array (std::vector< double > vIn, double *ary) |
| converts std::vector of doubles to array using std::copy More... | |
| void | modDub (double *pDub) |
| modifies the value at a pointer location, for debuggin More... | |
| void | modDubVec (double *pDub, int lenDub) |
| modifies the values across vector at a pointer location, for debuggin More... | |
helper functions for converting data types for HMM models
helper functions for converting data types for HMM models
| std::vector<double> array2vec | ( | double | ary[], |
| int | len | ||
| ) |
converts C array (of doubles) to std::vector of doubles
| ary | C array in |
| len | length of vector |
| std::vector<int> array2vec | ( | int | ary[], |
| int | len | ||
| ) |
converts C array (of ints) to std::vector of ints
| ary | C array in |
| len | ength of vector |
| void modDub | ( | double * | pDub | ) |
modifies the value at a pointer location, for debuggin
| pDub | pointer to double |
| void modDubVec | ( | double * | pDub, |
| int | lenDub | ||
| ) |
modifies the values across vector at a pointer location, for debuggin
| pDub | pointer to start of vector of doubles |
| lenDub | length of vector of doubles |
| void vec2array | ( | std::vector< double > | vIn, |
| double * | ary | ||
| ) |
converts std::vector of doubles to array using std::copy
| vIn | std::vector in |
| ary | pointer to location where array should be copied |