OpenCV  3.2.0-dev
Open Source Computer Vision
cv::ml::ParamGrid Class Reference

The structure represents the logarithmic grid range of statmodel parameters. More...

#include "ml.hpp"

Collaboration diagram for cv::ml::ParamGrid:

Public Member Functions

 ParamGrid ()
 Default constructor. More...
 
 ParamGrid (double _minVal, double _maxVal, double _logStep)
 Constructor with parameters. More...
 

Public Attributes

double logStep
 Logarithmic step for iterating the statmodel parameter. More...
 
double maxVal
 Maximum value of the statmodel parameter. More...
 
double minVal
 Minimum value of the statmodel parameter. More...
 

Detailed Description

The structure represents the logarithmic grid range of statmodel parameters.

It is used for optimizing statmodel accuracy by varying model parameters, the accuracy estimate being computed by cross-validation.

Constructor & Destructor Documentation

cv::ml::ParamGrid::ParamGrid ( )

Default constructor.

cv::ml::ParamGrid::ParamGrid ( double  _minVal,
double  _maxVal,
double  _logStep 
)

Constructor with parameters.

Member Data Documentation

double cv::ml::ParamGrid::logStep

Logarithmic step for iterating the statmodel parameter.

The grid determines the following iteration sequence of the statmodel parameter values:

\[(minVal, minVal*step, minVal*{step}^2, \dots, minVal*{logStep}^n),\]

where \(n\) is the maximal index satisfying

\[\texttt{minVal} * \texttt{logStep} ^n < \texttt{maxVal}\]

The grid is logarithmic, so logStep must always be greater then 1. Default value is 1.

double cv::ml::ParamGrid::maxVal

Maximum value of the statmodel parameter.

Default value is 0.

double cv::ml::ParamGrid::minVal

Minimum value of the statmodel parameter.

Default value is 0.


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