[−][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.
Implementations
impl ParamGrid
[src]
pub fn as_raw_ParamGrid(&self) -> *const c_void
[src]
pub fn as_raw_mut_ParamGrid(&mut self) -> *mut c_void
[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]
_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<Ptr<ParamGrid>>
[src]
min_val: f64,
max_val: f64,
logstep: f64
) -> Result<Ptr<ParamGrid>>
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]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for ParamGrid
[src]
impl ParamGridTrait for ParamGrid
[src]
fn as_raw_ParamGrid(&self) -> *const c_void
[src]
fn as_raw_mut_ParamGrid(&mut self) -> *mut c_void
[src]
fn min_val(&self) -> f64
[src]
fn set_min_val(&mut self, val: f64)
[src]
fn max_val(&self) -> f64
[src]
fn set_max_val(&mut self, val: f64)
[src]
fn log_step(&self) -> f64
[src]
fn set_log_step(&mut self, val: f64)
[src]
impl Send for ParamGrid
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParamGrid
impl !Sync for ParamGrid
impl Unpin for ParamGrid
impl UnwindSafe for ParamGrid
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,