How to determine the WEIGHTS in MPFITFUN for distribution function fit? [message #55783] |
Thu, 06 September 2007 00:54 |
duxiyu@gmail.com
Messages: 88 Registered: March 2007
|
Member |
|
|
I have a set of data and want to use a function to fit its
distribution function.
I have downloaded the procedure MPFITFUN and MPFIT.
The data set is divided into many bins by a binsize.
X is the mean value of the data point in each bin, and Y is the
statistical count (or normalized) of the data point in each bin.
Then I want to use the function 'myfunt' to fit the X and Y, and
compute the parameter P for 'myfunt'.
For example: p = mpfitfun ( 'myfunt', X, Y, Yerror, start)
But I do not konw how to determine Yerror.
If Yerror is set to unity, the 1-sigma errors for the estimated
parameter P cannot be returned correctly from MPFITFUN.
Best regards,
jdu
|
|
|