store plif arrays for all transitions in the model
Definition at line 28 of file PlifMatrix.h.
Public Member Functions | |
CPlifMatrix () | |
~CPlifMatrix () | |
CPlif ** | get_PEN () |
CPlifBase ** | get_plif_matrix () |
int32_t | get_num_states () |
CPlifBase ** | get_state_signals () |
int32_t | get_num_plifs () |
int32_t | get_num_limits () |
void | create_plifs (int32_t num_plifs, int32_t num_limits) |
void | set_plif_ids (int32_t *ids, int32_t num_ids) |
void | set_plif_min_values (float64_t *min_values, int32_t num_values) |
void | set_plif_max_values (float64_t *max_values, int32_t num_values) |
void | set_plif_use_cache (bool *use_cache, int32_t num_values) |
void | set_plif_use_svm (int32_t *use_svm, int32_t num_values) |
void | set_plif_limits (float64_t *limits, int32_t num_plifs, int32_t num_limits) |
void | set_plif_penalties (float64_t *penalties, int32_t num_plifs, int32_t num_limits) |
void | set_plif_names (TString< char > *names, int32_t num_values, int32_t maxlen=0) |
void | set_plif_transform_type (TString< char > *transform_type, int32_t num_values, int32_t maxlen=0) |
int32_t | get_plif_id (int32_t idx) |
bool | compute_plif_matrix (float64_t *penalties_array, int32_t *Dim, int32_t numDims) |
bool | compute_signal_plifs (int32_t *state_signals, int32_t feat_dim3, int32_t num_states) |
void | set_plif_state_signal_matrix (int32_t *plif_id_matrix, int32_t m, int32_t n) |
virtual const char * | get_name () const |
Protected Attributes | |
CPlif ** | m_PEN |
int32_t | m_num_plifs |
int32_t | m_num_limits |
int32_t | m_num_states |
int | m_feat_dim3 |
CArray< int32_t > | m_ids |
CPlifBase ** | m_plif_matrix |
CPlifBase ** | m_state_signals |
CPlifMatrix | ( | ) |
constructor
Definition at line 8 of file PlifMatrix.cpp.
~CPlifMatrix | ( | ) |
destructor
Definition at line 13 of file PlifMatrix.cpp.
bool compute_plif_matrix | ( | float64_t * | penalties_array, | |
int32_t * | Dim, | |||
int32_t | numDims | |||
) |
parse an 3D array of plif ids and compute the corresponding 2D plif matrix by subsuming the third dim into one PlifArray; Note: the class PlifArray is derived from PlifBase. It computes all individual plifs and sums them up.
penalties_array | 3D array of plif ids (nofstates x nofstates x nof(features for each transition)) | |
Dim | array of dimensions | |
numDims | number of dimensions |
Definition at line 183 of file PlifMatrix.cpp.
bool compute_signal_plifs | ( | int32_t * | state_signals, | |
int32_t | feat_dim3, | |||
int32_t | num_states | |||
) |
parse an 3D array of plif ids and compute the corresponding 3D plif array;
state_signals | mapping of features to states | |
feat_dim3 | maximal number of features to be considered in one state | |
num_states | number of states |
Definition at line 247 of file PlifMatrix.cpp.
void create_plifs | ( | int32_t | num_plifs, | |
int32_t | num_limits | |||
) |
create an empty plif matrix of size num_plifs * num_limits
num_plifs | number of plifs | |
num_limits | number of plif limits |
Definition at line 27 of file PlifMatrix.cpp.
virtual const char* get_name | ( | void | ) | const [virtual] |
int32_t get_num_limits | ( | ) |
get number of support points for picewise linear transformations (PLiFs)
Definition at line 77 of file PlifMatrix.h.
int32_t get_num_plifs | ( | ) |
int32_t get_num_states | ( | ) |
get number of states the number of states determines the size of the plif matrix
Definition at line 58 of file PlifMatrix.h.
CPlif** get_PEN | ( | ) |
int32_t get_plif_id | ( | int32_t | idx | ) |
return plif id for idx
idx | idx of plif |
Definition at line 162 of file PlifMatrix.h.
CPlifBase** get_plif_matrix | ( | ) |
CPlifBase** get_state_signals | ( | ) |
get plifs defining the mapping of signals to states
Definition at line 65 of file PlifMatrix.h.
void set_plif_ids | ( | int32_t * | ids, | |
int32_t | num_ids | |||
) |
set plif ids
ids | plif ids | |
num_ids | number of ids |
Definition at line 41 of file PlifMatrix.cpp.
void set_plif_limits | ( | float64_t * | limits, | |
int32_t | num_plifs, | |||
int32_t | num_limits | |||
) |
set all abscissa values of the support points for the for the pice wise linear transformations (PLiFs)
limits | array of length num_plifs*num_limits | |
num_plifs | number of plifs | |
num_limits | number of support vectors |
Definition at line 104 of file PlifMatrix.cpp.
void set_plif_max_values | ( | float64_t * | max_values, | |
int32_t | num_values | |||
) |
set array of max values for all plifs
max_values | array of max values | |
num_values | length of array |
Definition at line 68 of file PlifMatrix.cpp.
void set_plif_min_values | ( | float64_t * | min_values, | |
int32_t | num_values | |||
) |
set array of min values for all plifs
min_values | array of min values | |
num_values | length of array |
Definition at line 56 of file PlifMatrix.cpp.
void set_plif_names | ( | TString< char > * | names, | |
int32_t | num_values, | |||
int32_t | maxlen = 0 | |||
) |
set names for the PLiFs
names | names | |
num_values | number of names | |
maxlen | maximal string len of the names |
Definition at line 146 of file PlifMatrix.cpp.
void set_plif_penalties | ( | float64_t * | penalties, | |
int32_t | num_plifs, | |||
int32_t | num_limits | |||
) |
set all ordinate values of the support points for the for the pice wise linear transformations (PLiFs)
penalties | plif values: array of length num_plifs*num_limits | |
num_plifs | number of plifs | |
num_limits | number of support vectors |
Definition at line 125 of file PlifMatrix.cpp.
void set_plif_state_signal_matrix | ( | int32_t * | plif_id_matrix, | |
int32_t | m, | |||
int32_t | n | |||
) |
set best path plif state signal matrix
plif_id_matrix | plif id matrix | |
m | dimension m of matrix | |
n | dimension n of matrix |
Definition at line 275 of file PlifMatrix.cpp.
void set_plif_transform_type | ( | TString< char > * | transform_type, | |
int32_t | num_values, | |||
int32_t | maxlen = 0 | |||
) |
set plif transform type; for some features the plifs live in log space therefore the input values have to be transformed to log space before the transformation can be applied; the transform type is string coded
transform_type | transform type (e.g. LOG(x), LOG(x+1), ...) | |
num_values | number of transform strings | |
maxlen | of transform strings |
Definition at line 160 of file PlifMatrix.cpp.
void set_plif_use_cache | ( | bool * | use_cache, | |
int32_t | num_values | |||
) |
set plif use cache
use_cache | set array of bool values | |
num_values | length of array |
Definition at line 80 of file PlifMatrix.cpp.
void set_plif_use_svm | ( | int32_t * | use_svm, | |
int32_t | num_values | |||
) |
set plif use svm
use_svm | use svm | |
num_values | length of array |
Definition at line 92 of file PlifMatrix.cpp.
int m_feat_dim3 [protected] |
maximal number of features for a given state
Definition at line 223 of file PlifMatrix.h.
plif ids
Definition at line 226 of file PlifMatrix.h.
int32_t m_num_limits [protected] |
number of supporting points per plif
Definition at line 217 of file PlifMatrix.h.
int32_t m_num_plifs [protected] |
number of plifs
Definition at line 214 of file PlifMatrix.h.
int32_t m_num_states [protected] |
number of states in model
Definition at line 220 of file PlifMatrix.h.
array of plifs
Definition at line 211 of file PlifMatrix.h.
CPlifBase** m_plif_matrix [protected] |
plif matrix
Definition at line 229 of file PlifMatrix.h.
CPlifBase** m_state_signals [protected] |
state signals
Definition at line 232 of file PlifMatrix.h.