@Namespace(value="cv::ml")
@NoOffset
public static class opencv_ml.ParamGrid
extends org.bytedeco.javacpp.Pointer
It is used for optimizing statmodel accuracy by varying model parameters, the accuracy estimate being computed by cross-validation.
| Constructor and Description |
|---|
ParamGrid()
\brief Default constructor
|
ParamGrid(double _minVal,
double _maxVal,
double _logStep)
\brief Constructor with parameters
|
ParamGrid(long size)
Native array allocator.
|
ParamGrid(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_ml.ParamGrid |
create() |
static opencv_ml.ParamGrid |
create(double minVal,
double maxVal,
double logstep)
\brief Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
|
double |
logStep()
\brief Logarithmic step for iterating the statmodel parameter.
|
opencv_ml.ParamGrid |
logStep(double logStep) |
double |
maxVal()
Maximum value of the statmodel parameter.
|
opencv_ml.ParamGrid |
maxVal(double maxVal) |
double |
minVal()
Minimum value of the statmodel parameter.
|
opencv_ml.ParamGrid |
minVal(double minVal) |
opencv_ml.ParamGrid |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic ParamGrid(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public ParamGrid(long size)
Pointer.position(long).public ParamGrid()
public ParamGrid(double _minVal,
double _maxVal,
double _logStep)
public opencv_ml.ParamGrid position(long position)
position in class org.bytedeco.javacpp.Pointerpublic double minVal()
public opencv_ml.ParamGrid minVal(double minVal)
public double maxVal()
public opencv_ml.ParamGrid maxVal(double maxVal)
public double logStep()
The grid determines the following iteration sequence of the statmodel parameter values: \f[(minVal, minVal*step, minVal*{step}^2, \dots, minVal*{logStep}^n),\f] where \f$n\f$ is the maximal index satisfying \f[\texttt{minVal} * \texttt{logStep} ^n < \texttt{maxVal}\f] The grid is logarithmic, so logStep must always be greater then 1. Default value is 1.
public opencv_ml.ParamGrid logStep(double logStep)
@opencv_core.Ptr public static opencv_ml.ParamGrid create(double minVal, double maxVal, double logstep)
minVal - minimum value of the parameter gridmaxVal - maximum value of the parameter gridlogstep - Logarithmic step for iterating the statmodel parameter@opencv_core.Ptr public static opencv_ml.ParamGrid create()
Copyright © 2018. All rights reserved.