07-21-2006 02:04 PM
07-21-2006 03:46 PM
07-21-2006 03:54 PM
07-21-2006 04:21 PM
07-24-2006 04:23 PM
07-25-2006 11:53 AM
07-25-2006 12:03 PM
Great that it worked out for you. Yes, you definitely need reasonable initial estimates for the fitting parameters. Sinc is a relatively difficult function and you can easily get trapped in local minima (or worse) if the initial estimate is way off.
I case you're coming to NI-Week, stop by at session I87 and we'll chat a bit. 😄
07-25-2006 04:04 PM
Yeah, unfortunately I don't think I'll be able to make it down to
But more importantly, I don’t think I completely solved my curve fitting problem. The curve fitting vi that I am using isn’t generating the output that I was expecting. My goal is to simply add noise to a signal, then reconstruct the signal finding the best fit line/curve, which best represents the original signal. Here is where I currently stand:
The frequency of the new graph is too high. A sinc function is produced, but it doesn’t share the same form as the original signal.
I've tried other options, such as the Levenberg-Marquardt method, but this is proving to be a bit difficult to understand. I will attach the curve_fitting.vi and the Levenberg-Marquardt example that I was looking at. I think the LM vi is very close to what I need, but I’m having trouble integrating my own numbers into the program, to generate the results that I need. If anyone has any advice with the curve fitting, or any information that might 'dumb-down' some of the sub vi's in the Levenberg-Marquardt program model, it would help me out.
07-25-2006 05:50 PM - edited 07-25-2006 05:50 PM

Message Edited by altenbach on 07-25-2006 03:51 PM
07-25-2006 07:25 PM - edited 07-25-2006 07:25 PM
OK, The previous was the quick "1 minute answer". After some more investiagtions, here is a better answer: 😄
The sinc pattern generator is defined as sinc(x)=sin(pi*x)/(pi*x). Check the online help! If the x is "calibrated" your formula reduces to Asinc(x)+B (your original formula), which is linear in both parameters. Thus you can easily use the "general least squares linear" model with sinc(x) and 1 as the components! 🙂
To test:
You just need to scale your x correctly!

Message Edited by altenbach on 07-25-2006 05:26 PM