$search

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.

Classes

class  Model_3pe



#define WANT_MATH
#define WANT_STREAM
int main ()
int my_main ()

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.


Define Documentation

#define WANT_MATH

Definition at line 15 of file nl_ex.cpp.

#define WANT_STREAM

Definition at line 14 of file nl_ex.cpp.


Function Documentation

int main ( void   ) 

Definition at line 104 of file nl_ex.cpp.

int my_main (  ) 

Definition at line 52 of file nl_ex.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


kni
Author(s): Neuronics AG (see AUTHORS.txt); ROS wrapper by Martin Günther
autogenerated on Tue Mar 5 12:33:19 2013