pub trait FitModel {
// Required method
fn evaluate(&self, params: &[f64]) -> Result<Vec<f64>, FittingError>;
// Provided method
fn analytical_jacobian(
&self,
_params: &[f64],
_free_param_indices: &[usize],
_y_current: &[f64],
) -> Option<FlatMatrix> { ... }
}Expand description
A model that can be fitted to data.
Required Methods§
Provided Methods§
Sourcefn analytical_jacobian(
&self,
_params: &[f64],
_free_param_indices: &[usize],
_y_current: &[f64],
) -> Option<FlatMatrix>
fn analytical_jacobian( &self, _params: &[f64], _free_param_indices: &[usize], _y_current: &[f64], ) -> Option<FlatMatrix>
The Jacobian at params if available analytically, else None.