Overview | Package | Class | Tree | Index | Help

OpenCV 2.4.3.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.opencv.ml
Class CvParamGrid

    java.lang.Object
      org.opencv.ml.CvParamGrid

    public class CvParamGrid

extends java.lang.Object

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 Also:
  org.opencv.ml.CvParamGrid

Field Summary
`protected long` | `nativeObj`
`static int` | `SVM_C`
`static int` | `SVM_COEF`
`static int` | `SVM_DEGREE`
`static int` | `SVM_GAMMA`
`static int` | `SVM_NU`
`static int` | `SVM_P`

Constructor Summary
`` | `CvParamGrid()` The constructors.
`protected` | `CvParamGrid(long addr)`

Method Summary
`protected void` | `finalize()`
`double` | `get_max_val()`
`double` | `get_min_val()`
`double` | `get_step()`
`void` | `set_max_val(double max_val)`
`void` | `set_min_val(double min_val)`
`void` | `set_step(double step)`

Methods inherited from class java.lang.Object
`clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### nativeObj

    protected final long nativeObj

### SVM_C

    public static final int SVM_C

See Also:
  Constant Field Values

### SVM_COEF

    public static final int SVM_COEF

See Also:
  Constant Field Values

### SVM_DEGREE

    public static final int SVM_DEGREE

See Also:
  Constant Field Values

### SVM_GAMMA

    public static final int SVM_GAMMA

See Also:
  Constant Field Values

### SVM_NU

    public static final int SVM_NU

See Also:
  Constant Field Values

### SVM_P

    public static final int SVM_P

See Also:
  Constant Field Values

Constructor Detail

### CvParamGrid

    public 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 Also:
    org.opencv.ml.CvParamGrid.CvParamGrid

### CvParamGrid

    protected CvParamGrid(long addr)

Method Detail

### finalize

    protected void finalize()
                     throws java.lang.Throwable

  Overrides:
    `finalize` in class `java.lang.Object`
  Throws:
    `java.lang.Throwable`

### get_max_val

    public double get_max_val()

### get_min_val

    public double get_min_val()

### get_step

    public double get_step()

### set_max_val

    public void set_max_val(double max_val)

### set_min_val

    public void set_min_val(double min_val)

### set_step

    public void set_step(double step)

Overview | Package | Class | Tree | Index | Help

Official OpenCV 2.4 Documentation
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD