Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Fitting a Function with no closed form

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98633] Fitting a Function with no closed form
  • From: Adam Dally <adally at wisc.edu>
  • Date: Wed, 15 Apr 2009 04:57:22 -0400 (EDT)

I have a histogram which I am trying to fit with a convoluted function.

I get out the list of bin counts easy enough, but I can't figure out a way
to fit the function to the data.

This is the function:
F(x)=Re[NIntegrate [normalizer*(E0 - u)^2 Sqrt[1 - m^2/(E0 - u)^2]*Exp[(-((x
- u)^2/(2 \[Sigma]^2)))/(Sqrt[2 \[Pi]] \[Sigma])], {u, 0, E0}]]
"E0" and "sigma" are known constants. "Normalize" and "m" are the fitting
parameters.

I can get a plot or of a table of values out of the function by:
Plot[F(x),{x, minRange, maxRange}]
Table[F(x),{x, minRange, maxRange, binWidth}]

Is there a way to fit using a function like this? I would also like to error
bars on the fit parameters.

Thank you,
Adam Dally


  • Prev by Date: Re: Weather data options
  • Next by Date: Re: Trouble with FullSimplify
  • Previous by thread: Re: Plotting a x,y,z function
  • Next by thread: Re: Fitting a Function with no closed form