CPlifMatrix类参考


详细描述

store plif arrays for all transitions in the model

在文件PlifMatrix.h28行定义。

继承图,类CPlifMatrix
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CPlifMatrix ()
 ~CPlifMatrix ()
CPlif ** get_PEN ()
CPlifBase ** get_plif_matrix ()
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 (T_STRING< char > *names, int32_t num_values, int32_t maxlen=0)
void set_plif_transform_type (T_STRING< 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

保护属性

CPlif ** m_PEN
int32_t m_num_plifs
int32_t m_num_limits
CArray< int32_t > m_ids
CPlifBase ** m_plif_matrix
CPlifBase ** m_state_signals

构造及析构函数文档

CPlifMatrix (  ) 

constructor

在文件PlifMatrix.cpp8行定义。

~CPlifMatrix (  ) 

destructor

在文件PlifMatrix.cpp13行定义。


成员函数文档

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
返回:
success

在文件PlifMatrix.cpp168行定义。

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
返回:
success

在文件PlifMatrix.cpp223行定义。

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

在文件PlifMatrix.cpp17行定义。

virtual const char* get_name (  )  const [virtual]
返回:
object name

实现了CSGObject

在文件PlifMatrix.h198行定义。

int32_t get_num_limits (  ) 

get number of support points for picewise linear transformations (PLiFs)

返回:
number of support points

在文件PlifMatrix.h69行定义。

int32_t get_num_plifs (  ) 

get number of plifs

返回:
number of plifs

在文件PlifMatrix.h63行定义。

CPlif** get_PEN (  ) 

get array of all plifs

返回:
plif array

在文件PlifMatrix.h45行定义。

int32_t get_plif_id ( int32_t  idx  ) 

return plif id for idx

参数:
idx idx of plif
返回:
id of plif

在文件PlifMatrix.h154行定义。

CPlifBase** get_plif_matrix (  ) 

get plif matrix

返回:
matrix of plifs

在文件PlifMatrix.h51行定义。

CPlifBase** get_state_signals (  ) 

get plifs defining the mapping of signals to states

返回:
plifs

在文件PlifMatrix.h57行定义。

void set_plif_ids ( int32_t *  ids,
int32_t  num_ids 
)

set plif ids

参数:
ids plif ids
num_ids number of ids

在文件PlifMatrix.cpp31行定义。

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

在文件PlifMatrix.cpp94行定义。

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

在文件PlifMatrix.cpp58行定义。

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

在文件PlifMatrix.cpp46行定义。

void set_plif_names ( T_STRING< 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

在文件PlifMatrix.cpp134行定义。

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

在文件PlifMatrix.cpp114行定义。

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

在文件PlifMatrix.cpp248行定义。

void set_plif_transform_type ( T_STRING< 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

在文件PlifMatrix.cpp146行定义。

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

在文件PlifMatrix.cpp70行定义。

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

在文件PlifMatrix.cpp82行定义。


成员数据文档

CArray<int32_t> m_ids [protected]

plif ids

在文件PlifMatrix.h212行定义。

int32_t m_num_limits [protected]

number of supporting points per plif

在文件PlifMatrix.h209行定义。

int32_t m_num_plifs [protected]

number of plifs

在文件PlifMatrix.h206行定义。

CPlif** m_PEN [protected]

array of plifs

在文件PlifMatrix.h203行定义。

CPlifBase** m_plif_matrix [protected]

plif matrix

在文件PlifMatrix.h215行定义。

CPlifBase** m_state_signals [protected]

state signals

在文件PlifMatrix.h218行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation