Re: a difficulty about fit function

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Fri, 16 Oct 2009 08:24:06 +0200


Hi,

>> And the fit par[n] location in this expression.
>> Like gauss function form:
>> f(x)= par[1]*exp(1/par[3] *(x-par[2])^2) where the par[n] is the
>> fit
>> parameter
>>
>>
>> Best regard,
>> Fengchu
>>
>>
>>
>>

For a "gaus" function you have

gaus = par[0] * exp( - ( (x - par[1])^2 ) / ( 2 * par[2]^2 ) )

For a "landau" you have

  landau = par[0] * Landau( (x - par[1] )/ par[2] )

  where Landau(z) is defined as

http://en.wikipedia.org/wiki/Landau_distribution

Best Regards

  Lorenzo Received on Fri Oct 16 2009 - 08:24:17 CEST

This archive was generated by hypermail 2.2.0 : Fri Oct 16 2009 - 17:50:03 CEST