MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Lorentzian on a baseline


On May 28, 4:52 am, fred.eng... at gmail.com wrote:
> I'm trying to fit a Lorentzian subtracted from a constant baseline,
> using findfit.
>
>  FindFit[rawdata, m1 - m2/((x - m3)^2 + m2^2), {m1, m2, {m3, 250}}, x,
>   MaxIterations -> 10000]
>
> Isn't working - either a totally flat horizantal line, or the
> subtracted 'Lorentzian' looks almost delta-function sharp. Help?
> Thanks!

I suspect that your main problem is that you need to provide initial
guesses for m1 and m2 in addition to m3.


  • Prev by Date: Sum simplifying
  • Next by Date: Exporting the output of GraphPlot
  • Previous by thread: Re: Lorentzian on a baseline
  • Next by thread: Re: Lorentzian on a baseline