[][src]Struct opencv::ml::ParamGrid

pub struct ParamGrid { /* fields omitted */ }

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: 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.

pub fn default() -> Result<ParamGrid>[src]

Default constructor

pub fn for_range(
    _min_val: f64,
    _max_val: f64,
    _log_step: f64
) -> Result<ParamGrid>
[src]

Constructor with parameters

pub fn create(
    min_val: f64,
    max_val: f64,
    logstep: f64
) -> Result<PtrOfParamGrid>
[src]

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

impl Send for ParamGrid[src]

impl Drop for ParamGrid[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]