pub struct ScalarMinimum {
pub x: f64,
pub value: f64,
pub lower: f64,
pub upper: f64,
pub iterations: usize,
pub evaluations: usize,
pub status: Status,
}Expand description
A local minimum of a scalar function on an interval.
Fields§
§x: f64The minimiser estimate.
value: f64f(x).
lower: f64Lower end of the final bracket.
upper: f64Upper end of the final bracket. If f is unimodal on the starting
interval, the minimiser lies in [lower, upper].
iterations: usizeIterations performed.
evaluations: usizeFunction evaluations performed.
status: StatusHow the search stopped.
Implementations§
Source§impl ScalarMinimum
impl ScalarMinimum
Sourcepub fn error_bound(&self) -> f64
pub fn error_bound(&self) -> f64
A bound on |x - minimiser| for a unimodal function: the final
bracket width.
Sourcepub fn converged(self) -> NumericResult<Self>
pub fn converged(self) -> NumericResult<Self>
The minimum if the tolerance was met.
§Errors
NumericError::NotConverged with the bracket width reached.
Trait Implementations§
Source§impl Clone for ScalarMinimum
impl Clone for ScalarMinimum
Source§fn clone(&self) -> ScalarMinimum
fn clone(&self) -> ScalarMinimum
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalarMinimum
impl Debug for ScalarMinimum
Source§impl PartialEq for ScalarMinimum
impl PartialEq for ScalarMinimum
impl Copy for ScalarMinimum
impl StructuralPartialEq for ScalarMinimum
Auto Trait Implementations§
impl Freeze for ScalarMinimum
impl RefUnwindSafe for ScalarMinimum
impl Send for ScalarMinimum
impl Sync for ScalarMinimum
impl Unpin for ScalarMinimum
impl UnwindSafe for ScalarMinimum
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more