Skip to main content
1-Visitor
February 2, 2017
Question

Issue with Vector Definition and GenFit

  • February 2, 2017
  • 5 replies
  • 2389 views

My assignment requires me to use genfit to fit this plot. However, it keeps saying that the variable "y" needs to be defined as a vector of real numbers, which it is. Not sure why it keeps saying this error and I do not know what to do. Any suggestions? I believe it may be a issue with the software.

5 replies

16-Pearl
February 2, 2017

I think the problem is in your formulation.  I didn't spend too much time with it but your use of z doesn't look correct.  Here's a simple version.  Although I did need to give it a good guess to get the right answer.

fite.jpg

mlin-31-VisitorAuthor
1-Visitor
February 2, 2017

Thanks for your help man! I knew it wasn't something too difficult but just had trouble finding out what was wrong. I really appreciate it!

23-Emerald IV
February 2, 2017

You have indeed a vector of data, stored under the variable name 'y'. But then, before the genfit statement, you also define a function y(z)...

Which 'y' do you think Prime wants to use in the genfit?

Renaming the function y(z) to f(z) or something else (but NOT y), might already solve your problem.

Success!

Luc