|
From: Thomas S. <t.s...@fz...> - 2007-11-15 14:08:36
|
this fit can not work: the 1st derivatives of f(x,y) with respect to 'b' and 'c' are delta functions chisq only changes when the borders of your 'box-interval' cross datapoints. e.g. with the starting values a=20; b=6; c=1.5 you get the fit result: a = 5.9 b = 6 c = 1.5 but you will get the same fit result for 'a' for 1.0 < c < 2.0 or 5.5 < b < 6.5 and 'b' and 'c' are not changed at all. (if the interval borders are on datapoints, the fit result is unpredictable) in principle you are calculating the mean of all datapoints inside the 'box-intervall'. you need a continuous function for fitting, e.g. a normal distribution: n(x)=c*exp(-(x-a)**2/b) -- View this message in context: http://www.nabble.com/3-d-fitting-tf4810729.html#a13768274 Sent from the Gnuplot - User mailing list archive at Nabble.com. |