pub trait DownhillSolverTrait: DownhillSolverTraitConst + MinProblemSolverTrait {
// Required method
fn as_raw_mut_DownhillSolver(&mut self) -> *mut c_void;
// Provided method
fn set_init_step(&mut self, step: &impl ToInputArray) -> Result<()> { ... }
}
Expand description
Mutable methods for core::DownhillSolver
Required Methods§
fn as_raw_mut_DownhillSolver(&mut self) -> *mut c_void
Provided Methods§
Sourcefn set_init_step(&mut self, step: &impl ToInputArray) -> Result<()>
fn set_init_step(&mut self, step: &impl ToInputArray) -> Result<()>
Sets the initial step that will be used in downhill simplex algorithm.
Step, together with initial point (given in DownhillSolver::minimize) are two n
-dimensional
vectors that are used to determine the shape of initial simplex. Roughly said, initial point
determines the position of a simplex (it will become simplex’s centroid), while step determines the
spread (size in each dimension) of a simplex. To be more precise, if are
the initial step and initial point respectively, the vertices of a simplex will be:
and
for
where
denotes
projections of the initial step of n-th coordinate (the result of projection is treated to be
vector given by
, where
form canonical basis)
§Parameters
- step: Initial step that will be used in algorithm. Roughly said, it determines the spread (size in each dimension) of an initial simplex.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.