| 
 | OpenCV 2.4.3 (RC) | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencv.ml.CvSVMParams
public class CvSVMParams
SVM training parameters.
The structure must be initialized and passed to the training method of "CvSVM".
| Field Summary | |
|---|---|
| protected  long | nativeObj | 
| Constructor Summary | |
|---|---|
|   | CvSVMParams()The constructors. | 
| protected  | CvSVMParams(long addr) | 
| Method Summary | |
|---|---|
| protected  void | finalize() | 
|  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) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final long nativeObj
| Constructor Detail | 
|---|
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);
protected CvSVMParams(long addr)
| Method Detail | 
|---|
protected void finalize()
                 throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic 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)
| 
 | Official OpenCV 2.4 Documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||