Menu

Fitting y=a*x

Jan Kemik
2018-11-28
2019-01-09
  • Jan Kemik

    Jan Kemik - 2018-11-28

    I've been having some problems with fitting such a simple function. I started doing it by Fit Wizard and typing y=ax and then just fit. It worked for some time, but now when I do this simple procedure the program freezes and after a minute window pops out with error message:
    Error std::bad_alloc sending event 11QMouseEvent to object "11QPushButton"

    What can I do about it? Is there some other way to fit y=ax?

     

    Last edit: Jan Kemik 2018-11-28
    • Fellype

      Fellype - 2018-11-29

      Hi Jan,
      What version and operating system are you using?

      Have you tried to change the fitting algorithm from the default one - Scaled Levenberg-Marquardt - to another like the Unscaled LM or Nelder-Mead simplex in order to see if this produce the same error?

      By the way, you must have your reasons for trying to fit a linear function using simply y=ax. But the function y=ax+b must provide the same result for the value of 'a', within the uncertainty interval, of course.

       
  • Jan Kemik

    Jan Kemik - 2019-01-09

    I was using Fedora 28. It was a wierd bug. Changing the letter a to a1 made it work.

    Well, solved problem

     

Log in to post a comment.