org.opencv.ml.CvSVMParams Maven / Gradle / Ivy
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.ml;
import org.opencv.core.TermCriteria;
// C++: class CvSVMParams
/**
* SVM training parameters.
*
* The structure must be initialized and passed to the training method of
* "CvSVM".
*
* @see org.opencv.ml.CvSVMParams
*/
public class CvSVMParams {
protected final long nativeObj;
protected CvSVMParams(long addr) { nativeObj = addr; }
//
// C++: CvSVMParams::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 org.opencv.ml.CvSVMParams.CvSVMParams
*/
public CvSVMParams()
{
nativeObj = CvSVMParams_0();
return;
}
//
// C++: int CvSVMParams::svm_type
//
public int get_svm_type()
{
int retVal = get_svm_type_0(nativeObj);
return retVal;
}
//
// C++: void CvSVMParams::svm_type
//
public void set_svm_type(int svm_type)
{
set_svm_type_0(nativeObj, svm_type);
return;
}
//
// C++: int CvSVMParams::kernel_type
//
public int get_kernel_type()
{
int retVal = get_kernel_type_0(nativeObj);
return retVal;
}
//
// C++: void CvSVMParams::kernel_type
//
public void set_kernel_type(int kernel_type)
{
set_kernel_type_0(nativeObj, kernel_type);
return;
}
//
// C++: double CvSVMParams::degree
//
public double get_degree()
{
double retVal = get_degree_0(nativeObj);
return retVal;
}
//
// C++: void CvSVMParams::degree
//
public void set_degree(double degree)
{
set_degree_0(nativeObj, degree);
return;
}
//
// C++: double CvSVMParams::gamma
//
public double get_gamma()
{
double retVal = get_gamma_0(nativeObj);
return retVal;
}
//
// C++: void CvSVMParams::gamma
//
public void set_gamma(double gamma)
{
set_gamma_0(nativeObj, gamma);
return;
}
//
// C++: double CvSVMParams::coef0
//
public double get_coef0()
{
double retVal = get_coef0_0(nativeObj);
return retVal;
}
//
// C++: void CvSVMParams::coef0
//
public void set_coef0(double coef0)
{
set_coef0_0(nativeObj, coef0);
return;
}
//
// C++: double CvSVMParams::C
//
public double get_C()
{
double retVal = get_C_0(nativeObj);
return retVal;
}
//
// C++: void CvSVMParams::C
//
public void set_C(double C)
{
set_C_0(nativeObj, C);
return;
}
//
// C++: double CvSVMParams::nu
//
public double get_nu()
{
double retVal = get_nu_0(nativeObj);
return retVal;
}
//
// C++: void CvSVMParams::nu
//
public void set_nu(double nu)
{
set_nu_0(nativeObj, nu);
return;
}
//
// C++: double CvSVMParams::p
//
public double get_p()
{
double retVal = get_p_0(nativeObj);
return retVal;
}
//
// C++: void CvSVMParams::p
//
public void set_p(double p)
{
set_p_0(nativeObj, p);
return;
}
//
// C++: TermCriteria CvSVMParams::term_crit
//
public TermCriteria get_term_crit()
{
TermCriteria retVal = new TermCriteria(get_term_crit_0(nativeObj));
return retVal;
}
//
// C++: void CvSVMParams::term_crit
//
public void set_term_crit(TermCriteria term_crit)
{
set_term_crit_0(nativeObj, term_crit.type, term_crit.maxCount, term_crit.epsilon);
return;
}
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
// C++: CvSVMParams::CvSVMParams()
private static native long CvSVMParams_0();
// C++: int CvSVMParams::svm_type
private static native int get_svm_type_0(long nativeObj);
// C++: void CvSVMParams::svm_type
private static native void set_svm_type_0(long nativeObj, int svm_type);
// C++: int CvSVMParams::kernel_type
private static native int get_kernel_type_0(long nativeObj);
// C++: void CvSVMParams::kernel_type
private static native void set_kernel_type_0(long nativeObj, int kernel_type);
// C++: double CvSVMParams::degree
private static native double get_degree_0(long nativeObj);
// C++: void CvSVMParams::degree
private static native void set_degree_0(long nativeObj, double degree);
// C++: double CvSVMParams::gamma
private static native double get_gamma_0(long nativeObj);
// C++: void CvSVMParams::gamma
private static native void set_gamma_0(long nativeObj, double gamma);
// C++: double CvSVMParams::coef0
private static native double get_coef0_0(long nativeObj);
// C++: void CvSVMParams::coef0
private static native void set_coef0_0(long nativeObj, double coef0);
// C++: double CvSVMParams::C
private static native double get_C_0(long nativeObj);
// C++: void CvSVMParams::C
private static native void set_C_0(long nativeObj, double C);
// C++: double CvSVMParams::nu
private static native double get_nu_0(long nativeObj);
// C++: void CvSVMParams::nu
private static native void set_nu_0(long nativeObj, double nu);
// C++: double CvSVMParams::p
private static native double get_p_0(long nativeObj);
// C++: void CvSVMParams::p
private static native void set_p_0(long nativeObj, double p);
// C++: TermCriteria CvSVMParams::term_crit
private static native double[] get_term_crit_0(long nativeObj);
// C++: void CvSVMParams::term_crit
private static native void set_term_crit_0(long nativeObj, int term_crit_type, int term_crit_maxCount, double term_crit_epsilon);
// native support for java finalize()
private static native void delete(long nativeObj);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy