newmat/nl_ex.cpp File Reference

#include "newmatnl.h"
#include "newmatio.h"
Include dependency graph for nl_ex.cpp:

Go to the source code of this file.


Detailed Description

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.


Generated on Sun May 9 12:26:14 2010 for Realea by  doxygen 1.6.1