[−][src]Trait opencv::ml::prelude::ParamGridTrait
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.
Required methods
fn as_raw_ParamGrid(&self) -> *const c_void
fn as_raw_mut_ParamGrid(&mut self) -> *mut c_void
Provided methods
fn min_val(&self) -> f64
Minimum value of the statmodel parameter. Default value is 0.
fn set_min_val(&mut self, val: f64)
Minimum value of the statmodel parameter. Default value is 0.
fn max_val(&self) -> f64
Maximum value of the statmodel parameter. Default value is 0.
fn set_max_val(&mut self, val: f64)
Maximum value of the statmodel parameter. Default value is 0.
fn log_step(&self) -> f64
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.
fn set_log_step(&mut self, val: f64)
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.