I need use Levenberg-Marquardt nonlinear least squares algorithms for some curve fitting problems. This method seem to be powerful to solve the nonlinear fitting. I searched for the softwares which contains this method and found out that netlib has complete package of scientific computation, and it has 'minpack' which contains the LM method. The siteweb of minpack in netlib is http://www.netlib.org/minpack/.
I checked my system (mandriva) to see if the package minpack is installed. This is realised by
urpmq minpack or rpm -q minpack.
It turns out that other package of netlib (such as lapack) is installed, but not minpack. Now i need to install it myself.
wget http://ftp.debian.org/debian/pool/main/m/minpack/minpack_19961126.orig.tar.gz
wget http://ftp.debian.org/debian/pool/main/m/minpack/minpack_19961126-13.diff.gz
gzip -dc minpack_19961126.orig.tar.gz | tar xvf -
cd minpack-19961126.orig
gzip -dc ../minpack_19961126-11.diff.gz | patch -p1 -d.
sh ./configure --disable-shared --prefix=/usr
make
make install prefix=Path_to_install
install -D -m 644 ex/file06 Path_to_install/share/doc/minpack-dev/minpack-documentation.txt
install -D -m 644 readme Path_to_install/share/doc/minpack/readme
install -D -m 644 debian/copyright Path_to_install/share/doc/minpack/copyright
Then I set the Path_to_install in the PATH = Path_to_install in the file .bashrc.
Through the wiki http://en.wikipedia.org/wiki/MINPACK, I found a pdf file for how to use the minpack. hope they are helpful to understand the usage for the next step.
I also found a good reference website for installing the minpack in linux: http://devernay.free.fr/hacks/netlibs.html. I followed their suggestion in my installation.
Aucun commentaire:
Enregistrer un commentaire