OpenCV  2.4.13
Open Source Computer Vision
CvNormalBayesClassifier Class Reference

#include <ml.hpp>

Inheritance diagram for CvNormalBayesClassifier:
CvStatModel

Public Member Functions

 CvNormalBayesClassifier ()
 
virtual ~CvNormalBayesClassifier ()
 
 CvNormalBayesClassifier (const CvMat *trainData, const CvMat *responses, const CvMat *varIdx=0, const CvMat *sampleIdx=0)
 
virtual bool train (const CvMat *trainData, const CvMat *responses, const CvMat *varIdx=0, const CvMat *sampleIdx=0, bool update=false)
 
virtual float predict (const CvMat *samples, CV_OUT CvMat *results=0) const
 
virtual void clear ()
 
 CvNormalBayesClassifier (const cv::Mat &trainData, const cv::Mat &responses, const cv::Mat &varIdx=cv::Mat(), const cv::Mat &sampleIdx=cv::Mat())
 
virtual bool train (const cv::Mat &trainData, const cv::Mat &responses, const cv::Mat &varIdx=cv::Mat(), const cv::Mat &sampleIdx=cv::Mat(), bool update=false)
 
virtual float predict (const cv::Mat &samples, CV_OUT cv::Mat *results=0) const
 
virtual void write (CvFileStorage *storage, const char *name) const
 
virtual void read (CvFileStorage *storage, CvFileNode *node)
 
- Public Member Functions inherited from CvStatModel
 CvStatModel ()
 
virtual ~CvStatModel ()
 
virtual void save (const char *filename, const char *name=0) const
 
virtual void load (const char *filename, const char *name=0)
 

Protected Attributes

int var_count
 
int var_all
 
CvMatvar_idx
 
CvMatcls_labels
 
CvMat ** count
 
CvMat ** sum
 
CvMat ** productsum
 
CvMat ** avg
 
CvMat ** inv_eigen_values
 
CvMat ** cov_rotate_mats
 
CvMatc
 
- Protected Attributes inherited from CvStatModel
const char * default_model_name
 

Constructor & Destructor Documentation

CvNormalBayesClassifier::CvNormalBayesClassifier ( )
virtual CvNormalBayesClassifier::~CvNormalBayesClassifier ( )
virtual
CvNormalBayesClassifier::CvNormalBayesClassifier ( const CvMat trainData,
const CvMat responses,
const CvMat varIdx = 0,
const CvMat sampleIdx = 0 
)
CvNormalBayesClassifier::CvNormalBayesClassifier ( const cv::Mat trainData,
const cv::Mat responses,
const cv::Mat varIdx = cv::Mat(),
const cv::Mat sampleIdx = cv::Mat() 
)

Member Function Documentation

virtual void CvNormalBayesClassifier::clear ( )
virtual

Reimplemented from CvStatModel.

virtual float CvNormalBayesClassifier::predict ( const CvMat samples,
CV_OUT CvMat results = 0 
) const
virtual
virtual float CvNormalBayesClassifier::predict ( const cv::Mat samples,
CV_OUT cv::Mat results = 0 
) const
virtual
virtual void CvNormalBayesClassifier::read ( CvFileStorage storage,
CvFileNode node 
)
virtual

Reimplemented from CvStatModel.

virtual bool CvNormalBayesClassifier::train ( const CvMat trainData,
const CvMat responses,
const CvMat varIdx = 0,
const CvMat sampleIdx = 0,
bool  update = false 
)
virtual
virtual bool CvNormalBayesClassifier::train ( const cv::Mat trainData,
const cv::Mat responses,
const cv::Mat varIdx = cv::Mat(),
const cv::Mat sampleIdx = cv::Mat(),
bool  update = false 
)
virtual
virtual void CvNormalBayesClassifier::write ( CvFileStorage storage,
const char *  name 
) const
virtual

Reimplemented from CvStatModel.

Member Data Documentation

CvMat** CvNormalBayesClassifier::avg
protected
CvMat* CvNormalBayesClassifier::c
protected
CvMat* CvNormalBayesClassifier::cls_labels
protected
CvMat** CvNormalBayesClassifier::count
protected
CvMat** CvNormalBayesClassifier::cov_rotate_mats
protected
CvMat** CvNormalBayesClassifier::inv_eigen_values
protected
CvMat** CvNormalBayesClassifier::productsum
protected
CvMat** CvNormalBayesClassifier::sum
protected
int CvNormalBayesClassifier::var_all
protected
int CvNormalBayesClassifier::var_count
protected
CvMat* CvNormalBayesClassifier::var_idx
protected

The documentation for this class was generated from the following file: