function mpfit

Fit a given function to data using MPFIT

Syntax
result = mpfit(x, y, err, estimate, function)

Arguments
x:   The x-Values of the data
y:   the y-Values of the data
err:   The errors in y
estimate:   Initial estimate of the fit paramters
function:   A string describing the function to be fit


Returns
The best-fit parameters