[][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.

Implementations

impl ParamGrid[src]

impl ParamGrid[src]

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<Ptr<ParamGrid>>
[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 Boxed for ParamGrid[src]

impl Drop for ParamGrid[src]

impl ParamGridTrait for ParamGrid[src]

impl Send for ParamGrid[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.