cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Genfit work, LeastSquaresFit does not. ?

bgribkov
1-Visitor

Genfit work, LeastSquaresFit does not. ?

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.

2 REPLIES 2
RichardJ
19-Tanzanite
(To:bgribkov)

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.

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

Announcements

Top Tags