Commits on Apr 24, 2013
  1. README fixed

    committed Apr 24, 2013
  2. README unreadable

    committed Apr 24, 2013
  3. Add the following option

    -w --weight: use the available data (3rd col or sigma) as weight only
    -e --errbar: use the available data (3rd col or sigma) as errorbars
    committed Apr 24, 2013
  4. Bugs corrected

    * Now the -v option deals correctly with independent variable(s)
    i.e. -f "a*z+b" -v z, or
    -f "a*z+b" "b*q**alpha" -v z q
    * For multiple fitting functions as in the line above,
    a single figure is displayed with the plots
    committed Apr 24, 2013
Commits on Apr 22, 2013
  1. * maxfev (max nun. of iterations) increased

    * Better print of parameters
    * Typos corrected
    committed Apr 22, 2013
Commits on Nov 29, 2011
  1. Fixed various typos in README.rst

    Fixed syntax in the example test.
    committed Nov 29, 2011
Commits on Nov 28, 2011
  1. Fixed README.rst, and pValue deleted

    Maxfev increased to maxfev = 250*(len(params0)+1)
    committed Nov 28, 2011
Commits on Nov 7, 2011
  1. A new input method implemented using argparge (see REAME.rst)

    Corrected a bug in the calculation of the Jacobian. Now it is possible
    to calculate the fit using two or more functions and data even with
    analytical derivatives.
    
    Corrected a bug in the analytical derivatives for data.X = 0,
    and derivative as a constant:
    - derivative = "%s*%s/%s" % (derivative, var, var)
    + derivative = "%s*log(exp(%s))" % (derivative, var)
    committed Nov 7, 2011
Commits on Oct 11, 2011
Commits on Oct 4, 2011
  1. Fix a number of bugs on the use of the options (-s and -d)

    Introduced dFunc as an alias for analytical derivatives
    Legend eliminated (to be improved)
    Added a new separator "_and_" for multiple functions and filenames (to be documented yet)
    committed Oct 4, 2011
Commits on Sep 27, 2011
  1. Fit multiple datasets with different functions, and

    at least one common fitting parameter.
    
    Example of use with 2 gaussian and the same sigma:
    bestFit -f data1.dat,data2.dat -t "a*exp(-((x-x01)/sigma)**2)","b*exp(-((x-x02)/sigma)**2)" -p a,b,x01,x02,sigma -i 1,1,1,0,1.
    
    To be added to README.rst
    
    Use Qt4 backend for Matplotlib if available, as it enables to
    change all the figure elements, such as title, axis, colors etc.
    At the moment there is a bug in it (matplotlib 1.0.1).
    committed Sep 27, 2011
Commits on Sep 26, 2011
  1. Little changes in the README.rst

    committed Sep 26, 2011
Commits on Sep 22, 2011
  1. Added blank lines in README.rst

    committed Sep 22, 2011
  2. Minor fix in readme.rst

    committed Sep 22, 2011
  3. Separation of the lin/log option for calculation of the residual and

    of the plot using:
        --lin/log    Use data in linear/log mode (default: lin)
        --noplot           Don't show the plot output
        --logplot          Use log-log to plot data (default if --log)
    
    Added README.rst
    committed Sep 22, 2011
Commits on Sep 1, 2011
  1. Command 'exec' eliminated using

    f = sympy.simplify(function_string) and
    f.diff(variableToDiff)
    committed Sep 1, 2011
Commits on Aug 19, 2011
  1. Cosmetic changes in bestFit.py

    Added README and INSTALL.txt
    Added a test/eckerle4 directory for testing the script
    committed Aug 19, 2011
Commits on Aug 18, 2011
  1. A few improvements:

    * Added scipy.special functions (for instance, bessel, gamma, etc)
    for symbolic calculation of derivatives and in the function definition.
    * Solved a problem with function names, as in f = gamma(x) + polygamma(0,x).
    * Added a test function in getAnalyticalDerivatives
    * Added a check on NumExpr which works only on limited functions
    * Corrected a few bugs on use of the 3rd column as a errors of data
    committed Aug 18, 2011
Commits on Aug 16, 2011
  1. Fix the calculation of error of the fitting parameters, and of the co…

    …v_matrix
    
    Increase the max number of iterations (maxfev = 500*(len(params0)+1).
    Add the print of the 'nfev' output at the end of the iterations.
    committed Aug 16, 2011
Commits on Jul 27, 2011
  1. First library commit:

    bestFit: command-line least-square fit working with analytical derivatives
    calculated with sympy (use -d on the command line)
    getAnalyticalDerivatives: function to calculate the derivatives with sympy
    toUniformLogDistribution: log binning of distributions
    committed Jul 27, 2011