OpenCV 2.4.7

org.opencv.ml
Class CvSVMParams

java.lang.Object
  extended by org.opencv.ml.CvSVMParams

public class CvSVMParams
extends java.lang.Object

SVM training parameters.

The structure must be initialized and passed to the training method of "CvSVM".

See Also:
org.opencv.ml.CvSVMParams

Constructor Summary
CvSVMParams()
          The constructors.
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CvSVMParams

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);

See Also:
org.opencv.ml.CvSVMParams.CvSVMParams
Method Detail

get_C

public double get_C()

get_coef0

public double get_coef0()

get_degree

public double get_degree()

get_gamma

public double get_gamma()

get_kernel_type

public int get_kernel_type()

get_nu

public double get_nu()

get_p

public double get_p()

get_svm_type

public int get_svm_type()

get_term_crit

public TermCriteria get_term_crit()

set_C

public void set_C(double C)

set_coef0

public void set_coef0(double coef0)

set_degree

public void set_degree(double degree)

set_gamma

public void set_gamma(double gamma)

set_kernel_type

public void set_kernel_type(int kernel_type)

set_nu

public void set_nu(double nu)

set_p

public void set_p(double p)

set_svm_type

public void set_svm_type(int svm_type)

set_term_crit

public void set_term_crit(TermCriteria term_crit)

OpenCV 2.4.7 Documentation