org.opencv.ml
public class CvSVMParams extends java.lang.Object
SVM training parameters.
The structure must be initialized and passed to the training method of "CvSVM".
Constructor and Description |
---|
CvSVMParams()
The constructors.
|
Modifier and Type | Method and Description |
---|---|
double |
get_C() |
double |
get_coef0() |
double |
get_degree() |
double |
get_gamma() |
int |
get_kernel_type() |
double |
get_nu() |
double |
get_p() |
int |
get_svm_type() |
TermCriteria |
get_term_crit() |
void |
set_C(double C) |
void |
set_coef0(double coef0) |
void |
set_degree(double degree) |
void |
set_gamma(double gamma) |
void |
set_kernel_type(int kernel_type) |
void |
set_nu(double nu) |
void |
set_p(double p) |
void |
set_svm_type(int svm_type) |
void |
set_term_crit(TermCriteria term_crit) |
public CvSVMParams()
The constructors.
The default constructor initialize the structure with following values:
// C++ code:
CvSVMParams.CvSVMParams() :
svm_type(CvSVM.C_SVC), kernel_type(CvSVM.RBF), degree(0),
gamma(1), coef0(0), C(1), nu(0), p(0), class_weights(0)
term_crit = cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS, 1000, FLT_EPSILON);
public double get_C()
public double get_coef0()
public double get_degree()
public double get_gamma()
public int get_kernel_type()
public double get_nu()
public double get_p()
public int get_svm_type()
public TermCriteria get_term_crit()
public void set_C(double C)
public void set_coef0(double coef0)
public void set_degree(double degree)
public void set_gamma(double gamma)
public void set_kernel_type(int kernel_type)
public void set_nu(double nu)
public void set_p(double p)
public void set_svm_type(int svm_type)
public void set_term_crit(TermCriteria term_crit)