[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MPFIT improvements (speed)


MPFIT is a fitting program for IDL which I have been making available
on my web page.  For the uninitiated, MPFIT is based on the MINPACK-1
family of fortran least squares fitting routines, available at
netlib.org.  Because of its heritage, MPFIT is typically much more
robust (reliable) than the standard IDL fitting routines such as

MPFIT also has some nice features which make it easy to use in your
programs.  It allows you to hold any parameters fixed, and also to
place simple upper and lower bounds on parameter values.  You may also
supply a routine which is called upon each fitting iteration, which
for example may be used to update the parameter values in a widget.

MPFIT is partnered with two optional driver programs called MPFITFUN
and MPFITEXPR.  I especially recommend that you download MPFITFUN,
since it allows you to fit simple model functions easily [ MPFIT
itself is more powerful but slightly more difficult to use. ]

Gradually I am trying to make them better and faster, and I am making
some of those changes available now.  Please download and provide
feedback to me!  Changes include:

  * ability to stop fit from the keyboard by typing Control-G (see ITERSTOP)
  * optimizations for speed
    (if you need even more speed, investigate using the FASTNORM keyword)

Documentation is included.  The files, and a short tutorial are
available from the following web page:


Happy fitting!


Craig B. Markwardt, Ph.D.         EMAIL: craigmnet@astrog.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response