@Namespace(value="cv::ml") @NoOffset @Properties(inherit=opencv_ml.class) public class ParamGrid extends Pointer
It is used for optimizing statmodel accuracy by varying model parameters, the accuracy estimate being computed by cross-validation.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
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(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static ParamGrid |
create() |
static 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.
|
ParamGrid |
logStep(double setter) |
double |
maxVal()
Maximum value of the statmodel parameter.
|
ParamGrid |
maxVal(double setter) |
double |
minVal()
Minimum value of the statmodel parameter.
|
ParamGrid |
minVal(double setter) |
ParamGrid |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public ParamGrid(Pointer p)
Pointer.Pointer(Pointer)
.public ParamGrid(long size)
Pointer.position(long)
.public ParamGrid()
public ParamGrid(double _minVal, double _maxVal, double _logStep)
public double minVal()
public ParamGrid minVal(double setter)
public double maxVal()
public ParamGrid maxVal(double setter)
public double logStep()
The grid determines the following iteration sequence of the statmodel parameter values:
\[(minVal, minVal*step, minVal*{step}^2, \dots, minVal*{logStep}^n),\]
where n
is the maximal index satisfying
\[\texttt{minVal} * \texttt{logStep} ^n < \texttt{maxVal}\]
The grid is logarithmic, so logStep must always be greater than 1. Default value is 1.public ParamGrid logStep(double setter)
@opencv_core.Ptr public static 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 ParamGrid create()
Copyright © 2020. All rights reserved.