pub fn separable_least_squares<F, J, S1, S2, S3>(
basis_functions: F,
basis_jacobian: J,
x_data: &ArrayBase<S1, Ix1>,
y_data: &ArrayBase<S2, Ix1>,
beta0: &ArrayBase<S3, Ix1>,
options: Option<SeparableOptions>,
) -> OptimizeResult<SeparableResult>Expand description
Solve a separable nonlinear least squares problem
This function solves problems of the form: minimize ||y - Σ αᵢ φᵢ(x, β)||²
where α are linear parameters and β are nonlinear parameters.
§Arguments
basis_functions- Function that returns the basis matrix Φ(x, β)basis_jacobian- Function that returns ∂Φ/∂βx_data- Independent variable datay_data- Dependent variable databeta0- Initial guess for nonlinear parametersoptions- Options for the optimization