11 #ifndef __FACTOR_RELATED_H__ 12 #define __FACTOR_RELATED_H__ 47 virtual const char*
get_name()
const {
return "FactorDataSource"; }
123 virtual const char*
get_name()
const {
return "Factor"; }
166 bool is_data_dependent()
const;
169 bool is_data_sparse()
const;
180 float64_t get_energy(int32_t index)
const;
191 void set_energy(int32_t ei,
float64_t value);
200 void compute_energies();
virtual SGVector< float64_t > get_data() const
virtual const char * get_name() const
virtual SGSparseVector< float64_t > get_data_sparse() const
virtual void set_data_sparse(SGSparseVectorEntry< float64_t > *sparse, int32_t dlen)
Class SGObject is the base class of all shogun objects.
SGSparseVector< float64_t > m_data_sparse
SGVector< int32_t > m_var_index
Class CFactorDataSource Source for factor data. In some cases, the same data can be shared by many fa...
virtual void set_data(SGVector< float64_t > dense)
virtual const char * get_name() const
all of classes and functions are contained in the shogun namespace
virtual bool is_sparse() const
Class CTableFactorType the way that store assignments of variables and energies in a table or a multi...
virtual ~CFactorDataSource()
CTableFactorType * m_factor_type
Class CFactor A factor is defined on a clique in the factor graph. Each factor can have its own data...
SGVector< float64_t > m_data
CFactorDataSource * m_data_source
SGVector< float64_t > m_energies