Struct rgsl::types::multifit_solver::MultiFitFdfSolver
source · pub struct MultiFitFdfSolver { /* private fields */ }
Implementations§
source§impl MultiFitFdfSolver
impl MultiFitFdfSolver
sourcepub fn new(
_type: &MultiFitFdfSolverType,
n: usize,
p: usize
) -> Option<MultiFitFdfSolver>
pub fn new(
_type: &MultiFitFdfSolverType,
n: usize,
p: usize
) -> Option<MultiFitFdfSolver>
This function returns a pointer to a newly allocated instance of a solver of type T for n observations and p parameters. The number of observations n must be greater than or equal to parameters p.
sourcepub fn set(&mut self, f: &mut MultiFitFunctionFdf, x: &VectorF64) -> Value
pub fn set(&mut self, f: &mut MultiFitFunctionFdf, x: &VectorF64) -> Value
This function initializes, or reinitializes, an existing solver s to use the function f and the initial guess x.
pub fn x(&self) -> VectorF64
pub fn f(&self) -> VectorF64
pub fn J(&self) -> MatrixF64
pub fn dx(&self) -> VectorF64
pub fn name(&self) -> String
sourcepub fn iterate(&mut self) -> Value
pub fn iterate(&mut self) -> Value
This function performs a single iteration of the solver s. If the iteration encounters an unexpected problem then an error code will be returned. The solver maintains a current estimate of the best-fit parameters at all times.