11 #ifndef __FACTOR_TYPE_H__ 12 #define __FACTOR_TYPE_H__ 14 #include <shogun/lib/config.h> 47 virtual const char*
get_name()
const {
return "FactorType"; }
89 virtual bool is_table()
const {
return false; }
140 virtual const char*
get_name()
const {
return "TableFactorType"; }
151 int32_t state_from_index(int32_t ei, int32_t var_index)
const;
168 int32_t index_from_new_state(int32_t old_ei, int32_t var_index, int32_t var_state)
const;
virtual void set_type_id(int32_t id)
Class CFactorType defines the way of factor parameterization.
SGVector< float64_t > m_w
virtual SGVector< float64_t > get_w()
SGVector< int32_t > m_cards
SGVector< int32_t > m_cumprod_cards
virtual int32_t get_type_id() const
void set_w(SGVector< float64_t > w)
Class SGObject is the base class of all shogun objects.
virtual bool is_table() const
virtual bool is_table() const
virtual const char * get_name() const
int32_t m_num_assignments
virtual void set_cardinalities(SGVector< int32_t > cards)
virtual const char * get_name() const
virtual const SGVector< int32_t > get_cardinalities() const
all of classes and functions are contained in the shogun namespace
virtual int32_t get_w_dim() const
Class CTableFactorType the way that store assignments of variables and energies in a table or a multi...
virtual int32_t get_num_vars()
virtual int32_t get_num_assignments() const