pub type Model<'a> = dyn Fn(f64, &[f64]) -> f64 + 'a;
A nonlinear model f(x, params) for fit_model.
f(x, params)
fit_model