Class Histogram computes a histogram over all 16bit unsigned integers in the features.
Values in histogram are absolute counts (logarithmic)
在文件Histogram.h第26行定义。
公有成员 | |
CHistogram () | |
CHistogram (CStringFeatures< uint16_t > *f) | |
virtual | ~CHistogram () |
virtual bool | train (CFeatures *data=NULL) |
virtual int32_t | get_num_model_parameters () |
virtual float64_t | get_log_model_parameter (int32_t num_param) |
virtual float64_t | get_log_derivative (int32_t num_param, int32_t num_example) |
virtual float64_t | get_log_likelihood_example (int32_t num_example) |
virtual bool | set_histogram (float64_t *src, int32_t num) |
virtual void | get_histogram (float64_t **dst, int32_t *num) |
virtual const char * | get_name () const |
保护属性 | |
float64_t * | hist |
CHistogram | ( | ) |
default constructor
在文件Histogram.cpp第20行定义。
CHistogram | ( | CStringFeatures< uint16_t > * | f ) |
~CHistogram | ( | ) | [virtual] |
在文件Histogram.cpp第33行定义。
void get_histogram | ( | float64_t ** | dst, |
int32_t * | num | ||
) | [virtual] |
get histogram
dst | where the histogram will be stored |
num | where number of values in histogram will be stored |
在文件Histogram.cpp第161行定义。
float64_t get_log_derivative | ( | int32_t | num_param, |
int32_t | num_example | ||
) | [virtual] |
get logarithm of one example's derivative's likelihood
num_param | which example's param |
num_example | which example |
实现了CDistribution。
在文件Histogram.cpp第104行定义。
float64_t get_log_likelihood_example | ( | int32_t | num_example ) | [virtual] |
get logarithm of one example's likelihood
num_example | which example |
实现了CDistribution。
在文件Histogram.cpp第82行定义。
float64_t get_log_model_parameter | ( | int32_t | num_param ) | [virtual] |
get logarithm of given model parameter
num_param | which param |
实现了CDistribution。
在文件Histogram.cpp第143行定义。
virtual const char* get_name | ( | ) | const [virtual] |
virtual int32_t get_num_model_parameters | ( | ) | [virtual] |
get number of model parameters
实现了CDistribution。
在文件Histogram.h第53行定义。
bool set_histogram | ( | float64_t * | src, |
int32_t | num | ||
) | [virtual] |
bool train | ( | CFeatures * | data = NULL ) |
[virtual] |
learn distribution
data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
实现了CDistribution。
在文件Histogram.cpp第38行定义。
histogram
在文件Histogram.h第98行定义。