#include "newmatnl.h"
#include "newmatio.h"
Go to the source code of this file.
Example of non-linear least squares fit.
This is an example of a non-linear least squares fit. The example is from "Nonlinear estimation" by Gavin Ross (Springer,1990), p 63. There are better ways of doing the fit in this case so this example is just an example.
The model is E(y) = a + b exp(-kx) and there are 6 data points.
Definition in file nl_ex.cpp.