公有成员 | 保护属性

CHistogram类参考


详细描述

Class Histogram computes a histogram over all 16bit unsigned integers in the features.

Values in histogram are absolute counts (logarithmic)

在文件Histogram.h26行定义。

继承图,类CHistogram
Inheritance graph
[图例]

所有成员的列表。

公有成员

 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_thist

构造及析构函数文档

CHistogram (  ) 

default constructor

在文件Histogram.cpp20行定义。

CHistogram ( CStringFeatures< uint16_t > *  f  ) 

constructor

参数:
f histogram's features

在文件Histogram.cpp26行定义。

~CHistogram (  )  [virtual]

在文件Histogram.cpp33行定义。


成员函数文档

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.cpp161行定义。

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
返回:
logarithm of example's derivative's likelihood

实现了CDistribution

在文件Histogram.cpp104行定义。

float64_t get_log_likelihood_example ( int32_t  num_example  )  [virtual]

get logarithm of one example's likelihood

参数:
num_example which example
返回:
logarithm of example's likelihood

实现了CDistribution

在文件Histogram.cpp82行定义。

float64_t get_log_model_parameter ( int32_t  num_param  )  [virtual]

get logarithm of given model parameter

参数:
num_param which param
返回:
logarithm of given model parameter

实现了CDistribution

在文件Histogram.cpp143行定义。

virtual const char* get_name (  )  const [virtual]
返回:
object name

实现了CSGObject

在文件Histogram.h94行定义。

virtual int32_t get_num_model_parameters (  )  [virtual]

get number of model parameters

返回:
number of model parameters

实现了CDistribution

在文件Histogram.h53行定义。

bool set_histogram ( float64_t src,
int32_t  num 
) [virtual]

set histogram

参数:
src new histogram
num number of values in histogram

在文件Histogram.cpp148行定义。

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)
返回:
whether training was successful

实现了CDistribution

在文件Histogram.cpp38行定义。


成员数据文档

float64_t* hist [protected]

histogram

在文件Histogram.h98行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation