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 trait MPFitter
  • xall - A mutable slice with starting fit parameters
  • params - A possible slice with parameter configurations
  • config - MPConifg to configure the fit