Function rmpfit::mpfit [−][src]
pub fn mpfit<T: MPFitter>(
f: &T,
xall: &mut [f64],
params: Option<&[MPPar]>,
config: &MPConfig
) -> MPResult<MPStatus>
Main function to refine the parameters.
Arguments
f
- A reference to a user struct which implements traitMPFitter
xall
- A mutable slice with starting fit parametersparams
- A possible slice with parameter configurationsconfig
-MPConifg
to configure the fit