Skip to main content
1-Visitor
March 27, 2015
Question

Genfit work, LeastSquaresFit does not. ?

  • March 27, 2015
  • 1 reply
  • 1466 views

Dear colleagues, I`m not so experienced user and encountered with some problems with curve fitting functions (Genfit works but LeastSquaresFit does not - gives the error that data units are not compatible). Could you help if possible? I`m completely stucked. Thank you.

1 reply

19-Tanzanite
March 27, 2015

You are mixing stuff that has units (ko, because you calculate it using built in constants, which have units), and stuff with no units (your data). Therefore PhQfit(vx,Beta_guess) has units, but vy does not. The two must have the same units. Actually, I'm a little surprised that genfit does not complain. Either don't use units at all, or use them consistently. The latter is by far the best option.

bgribkov1-VisitorAuthor
1-Visitor
March 30, 2015

Thanks a lot! I`m going to check it now!