Issue with Vector Definition and GenFit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Issue with Vector Definition and GenFit
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.
- Labels:
-
Statistics_Analysis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Better plot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
... with the log Y scale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
