
Definition at line 18 of file Histogram.h.
| CHistogram::CHistogram | ( | ) |
default constructor
Definition at line 19 of file Histogram.cpp.
| CHistogram::CHistogram | ( | CStringFeatures< WORD > * | f | ) |
| CHistogram::~CHistogram | ( | ) |
Definition at line 32 of file Histogram.cpp.
| bool CHistogram::train | ( | ) | [virtual] |
train histogram
Implements CDistribution.
Definition at line 37 of file Histogram.cpp.
| virtual INT CHistogram::get_num_model_parameters | ( | ) | [virtual] |
get number of model parameters
Implements CDistribution.
Definition at line 41 of file Histogram.h.
get logarithm of given model parameter
| num_param | which param |
Implements CDistribution.
Definition at line 117 of file Histogram.cpp.
get logarithm of one example's derivative's likelihood
| num_param | which example's param | |
| num_example | which example |
Implements CDistribution.
Definition at line 83 of file Histogram.cpp.
get logarithm of one example's likelihood
| num_example | which example |
Implements CDistribution.
Definition at line 66 of file Histogram.cpp.
set histogram
| src | new histogram | |
| num | number of values in histogram |
Definition at line 122 of file Histogram.cpp.
get histogram
| dst | where the histogram will be stored | |
| num | where number of values in histogram will be stored |
Definition at line 135 of file Histogram.cpp.
| INT CDistribution::get_num_relevant_model_parameters | ( | ) | [virtual, inherited] |
get number of parameters in model that are relevant, i.e. > ALMOST_NEG_INFTY
Definition at line 48 of file Distribution.cpp.
| DREAL CDistribution::get_log_likelihood_sample | ( | ) | [virtual, inherited] |
compute log likelihood for whole sample
Definition at line 24 of file Distribution.cpp.
compute log likelihood for each example
| dst | where likelihood will be stored | |
| num | where number of likelihoods will be stored |
Definition at line 35 of file Distribution.cpp.
get model parameter
| num_param | which param |
Definition at line 94 of file Distribution.h.
get derivative of likelihood function
| num_param | which param | |
| num_example | which example |
Definition at line 105 of file Distribution.h.
compute likelihood for example
| num_example | which example |
Definition at line 115 of file Distribution.h.
| virtual void CDistribution::set_features | ( | CFeatures * | f | ) | [virtual, inherited] |
set feature vectors
| f | new feature vectors |
Definition at line 124 of file Distribution.h.
| virtual CFeatures* CDistribution::get_features | ( | ) | [virtual, inherited] |
| virtual void CDistribution::set_pseudo_count | ( | DREAL | pseudo | ) | [virtual, inherited] |
| virtual DREAL CDistribution::get_pseudo_count | ( | ) | [virtual, inherited] |
DREAL* CHistogram::hist [protected] |
histogram
Definition at line 82 of file Histogram.h.
CFeatures* CDistribution::features [protected, inherited] |
feature vectors
Definition at line 146 of file Distribution.h.
DREAL CDistribution::pseudo_count [protected, inherited] |
pseudo count
Definition at line 148 of file Distribution.h.
CParallel CSGObject::parallel [static, inherited] |
Definition at line 105 of file SGObject.h.
CIO CSGObject::io [static, inherited] |
Definition at line 106 of file SGObject.h.
CVersion CSGObject::version [static, inherited] |
Definition at line 107 of file SGObject.h.