54 REQUIRE(lab,
"Given labels are NULL!\n");
56 "not match dimension of functions (%d)\n",
58 REQUIRE(F.
num_cols>0,
"Number of passed functions (%d) must be positive\n",
75 REQUIRE(lab,
"Labels are required (lab should not be NULL)\n")
77 "Length of the vector of means (%d), length of the vector of "
78 "variances (%d) and number of labels (%d) should be the same\n",
92 REQUIRE(lab,
"Labels are required (lab should not be NULL)\n")
94 "Length of the vector of means (%d), length of the vector of "
95 "variances (%d) and number of labels (%d) should be the same\n",
virtual SGVector< float64_t > get_first_moments(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab) const
virtual SGVector< float64_t > get_log_probability_f(const CLabels *lab, SGVector< float64_t > func) const =0
The class Labels models labels, i.e. class assignments of objects.
virtual int32_t get_num_labels() const =0
virtual SGVector< float64_t > get_log_zeroth_moments(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab) const =0
virtual SGVector< float64_t > get_second_moments(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab) const
virtual float64_t get_second_moment(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab, index_t i) const =0
virtual SGVector< float64_t > get_log_probability_fmatrix(const CLabels *lab, SGMatrix< float64_t > F) const
virtual SGVector< float64_t > get_predictive_log_probabilities(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab=NULL)
static T sum(T *vec, int32_t len)
Return sum(vec)
all of classes and functions are contained in the shogun namespace
virtual float64_t get_first_moment(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab, index_t i) const =0
virtual ~CLikelihoodModel()