Struct rmpfit::MPConfig

source ·
pub struct MPConfig {
    pub ftol: f64,
    pub xtol: f64,
    pub gtol: f64,
    pub epsfcn: f64,
    pub step_factor: f64,
    pub covtol: f64,
    pub max_iter: usize,
    pub max_fev: usize,
    pub do_user_scale: bool,
    pub no_finite_check: bool,
}
Expand description

MPFIT configuration structure

Fields§

§ftol: f64

Relative chi-square convergence criterion (Default: 1e-10)

§xtol: f64

Relative parameter convergence criterion (Default: 1e-10)

§gtol: f64

Orthogonality convergence criterion (Default: 1e-10)

§epsfcn: f64

Finite derivative step size (Default: f64::EPSILON)

§step_factor: f64

Initial step bound (Default: 100.0)

§covtol: f64

Range tolerance for covariance calculation (Default: 1e-14)

§max_iter: usize

Maximum number of iterations (Default: 200). If maxiter == 0, then basic error checking is done, and parameter errors/covariances are estimated based on input parameter values, but no fitting iterations are done.

§max_fev: usize

Maximum number of function evaluations, or 0 for no limit (Default: 0 (no limit))

§do_user_scale: bool

Scale variables by user values? true = yes, user scale values in diag; false = no, variables scaled internally (Default: false)

§no_finite_check: bool

Disable check for infinite quantities from user? true = perform check; false = do not perform check (Default: false)

Trait Implementations§

source§

impl Default for MPConfig

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.