org.opencv.ml
public class CvParamGrid extends java.lang.Object
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.
Minimum value of the statmodel parameter.
Maximum value of the statmodel parameter.
// C++ code:
Logarithmic step for iterating the statmodel parameter.
The grid determines the following iteration sequence of the statmodel parameter values:
(min_val, min_val*step, min_val*(step)^2, dots, min_val*(step)^n),
where n is the maximal index satisfying
min_val * step ^n < max_val
The grid is logarithmic, so step
must always be greater then 1.
Modifier and Type | Field and Description |
---|---|
static int |
SVM_C |
static int |
SVM_COEF |
static int |
SVM_DEGREE |
static int |
SVM_GAMMA |
static int |
SVM_NU |
static int |
SVM_P |
Constructor and Description |
---|
CvParamGrid()
The constructors.
|
Modifier and Type | Method and Description |
---|---|
double |
get_max_val() |
double |
get_min_val() |
double |
get_step() |
void |
set_max_val(double max_val) |
void |
set_min_val(double min_val) |
void |
set_step(double step) |
public static final int SVM_C
public static final int SVM_COEF
public static final int SVM_DEGREE
public static final int SVM_GAMMA
public static final int SVM_NU
public static final int SVM_P