All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencv.ml.CvParamGrid Maven / Gradle / Ivy


//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.ml;



// C++: class CvParamGrid
/**
 * 

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.

* * @see org.opencv.ml.CvParamGrid */ public class CvParamGrid { protected final long nativeObj; protected CvParamGrid(long addr) { nativeObj = addr; } public static final int SVM_C = 0, SVM_GAMMA = 1, SVM_P = 2, SVM_NU = 3, SVM_COEF = 4, SVM_DEGREE = 5; // // C++: CvParamGrid::CvParamGrid() // /** *

The constructors.

* *

The full constructor initializes corresponding members. The default * constructor creates a dummy grid:

* *

* *

// C++ code:

* *

CvParamGrid.CvParamGrid()

* * *

min_val = max_val = step = 0;

* * * @see org.opencv.ml.CvParamGrid.CvParamGrid */ public CvParamGrid() { nativeObj = CvParamGrid_0(); return; } // // C++: double CvParamGrid::min_val // public double get_min_val() { double retVal = get_min_val_0(nativeObj); return retVal; } // // C++: void CvParamGrid::min_val // public void set_min_val(double min_val) { set_min_val_0(nativeObj, min_val); return; } // // C++: double CvParamGrid::max_val // public double get_max_val() { double retVal = get_max_val_0(nativeObj); return retVal; } // // C++: void CvParamGrid::max_val // public void set_max_val(double max_val) { set_max_val_0(nativeObj, max_val); return; } // // C++: double CvParamGrid::step // public double get_step() { double retVal = get_step_0(nativeObj); return retVal; } // // C++: void CvParamGrid::step // public void set_step(double step) { set_step_0(nativeObj, step); return; } @Override protected void finalize() throws Throwable { delete(nativeObj); } // C++: CvParamGrid::CvParamGrid() private static native long CvParamGrid_0(); // C++: double CvParamGrid::min_val private static native double get_min_val_0(long nativeObj); // C++: void CvParamGrid::min_val private static native void set_min_val_0(long nativeObj, double min_val); // C++: double CvParamGrid::max_val private static native double get_max_val_0(long nativeObj); // C++: void CvParamGrid::max_val private static native void set_max_val_0(long nativeObj, double max_val); // C++: double CvParamGrid::step private static native double get_step_0(long nativeObj); // C++: void CvParamGrid::step private static native void set_step_0(long nativeObj, double step); // native support for java finalize() private static native void delete(long nativeObj); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy