[−][src]Struct opencv::ml::ParamGrid
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.
Methods
impl ParamGrid
[src]
pub fn as_raw_ParamGrid(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
impl ParamGrid
[src]
pub fn min_val(&self) -> Result<f64>
[src]
Minimum value of the statmodel parameter. Default value is 0.
pub fn max_val(&self) -> Result<f64>
[src]
Maximum value of the statmodel parameter. Default value is 0.
pub fn log_step(&self) -> Result<f64>
[src]
Logarithmic step for iterating the statmodel parameter.
The grid determines the following iteration sequence of the statmodel parameter values: where is the maximal index satisfying The grid is logarithmic, so logStep must always be greater than 1. Default value is 1.
pub fn default() -> Result<ParamGrid>
[src]
Default constructor
pub fn for_range(
_min_val: f64,
_max_val: f64,
_log_step: f64
) -> Result<ParamGrid>
[src]
_min_val: f64,
_max_val: f64,
_log_step: f64
) -> Result<ParamGrid>
Constructor with parameters
pub fn create(
min_val: f64,
max_val: f64,
logstep: f64
) -> Result<PtrOfParamGrid>
[src]
min_val: f64,
max_val: f64,
logstep: f64
) -> Result<PtrOfParamGrid>
Creates a ParamGrid Ptr that can be given to the %SVM::trainAuto method
Parameters
- minVal: minimum value of the parameter grid
- maxVal: maximum value of the parameter grid
- logstep: Logarithmic step for iterating the statmodel parameter
C++ default parameters
- min_val: 0.
- max_val: 0.
- logstep: 1.
Trait Implementations
Auto Trait Implementations
impl !Sync for ParamGrid
impl Unpin for ParamGrid
impl UnwindSafe for ParamGrid
impl RefUnwindSafe for ParamGrid
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,