Trait argmin::parameter::ArgminParameter
[−]
[src]
pub trait ArgminParameter: Clone + Default + Debug + Index<usize, Output = Self::Element> + IndexMut<usize> { type Element: PartialOrd + Clone; fn modify(&self) -> (Self, usize); fn random(_: &Self, _: &Self) -> Self; }
This trait needs to be implemented for every parameter fed into the solvers. This is highly UNSTABLE and will change in the future.
Associated Types
type Element: PartialOrd + Clone
Type of a single element of the parameter vector
Required Methods
fn modify(&self) -> (Self, usize)
Defines a single modification of the parameter vector.
The parameters:
&self
: reference to the object of type Self
fn random(_: &Self, _: &Self) -> Self
Returns a completely random parameter vector
The resulting parameter vector satisfies lower_bound
, upper_bound
.