[][src]Trait opencv::ml::prelude::ParamGridTrait

pub trait ParamGridTrait {
    fn as_raw_ParamGrid(&self) -> *const c_void;
fn as_raw_mut_ParamGrid(&mut self) -> *mut c_void; fn min_val(&self) -> f64 { ... }
fn set_min_val(&mut self, val: f64) { ... }
fn max_val(&self) -> f64 { ... }
fn set_max_val(&mut self, val: f64) { ... }
fn log_step(&self) -> f64 { ... }
fn set_log_step(&mut self, val: f64) { ... } }

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

Loading content...

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: block formula where inline formula is the maximal index satisfying block formula 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: block formula where inline formula is the maximal index satisfying block formula The grid is logarithmic, so logStep must always be greater than 1. Default value is 1.

Loading content...

Implementors

Loading content...