Poor Curve Fitting issues

This is a discussion on Poor Curve Fitting issues within the labview forums in Programming Languages category; I tried to fit a curve in LV 8.2. I don't know why the result (attachment) was so bad and remained the same in the different weights of "general polynomial fit.vi".   Although I can't find the manual about mathematical functions, I expected the curve was well fit in start/end region with some weight. In order to do, I made the weight (0.5 nearby middle and 1 start/end region) , but the gap in start/end X region of the attachment was rather big.   In Origin, commercial fitting program, the result was sufficient to use in other application.   What's the different ...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-08-2008, 10:10 AM
labmaster
Guest
 
Default Poor Curve Fitting issues

I tried to fit a curve in LV 8.2.
I don't know why the result (attachment) was so bad and remained the same in the different weights of "general polynomial fit.vi".
 
Although I can't find the manual about mathematical functions, I expected the curve was well fit in start/end region with some weight.
In order to do, I made the weight (0.5 nearby middle and 1 start/end region) , but the gap in start/end X region of the attachment was rather big.
 
In Origin, commercial fitting program, the result was sufficient to use in other application.
 
What's the different between LV and Origin?
 
*)Annotation of red in color was incorrect in the attachment.???? 07-08-2008 09:08 AM? labmaster? ?? ?????


result.jpg:
http://forums.ni.com/attachments/ni/...4/2/result.jpg
Reply With Quote
  #2  
Old 07-08-2008, 11:10 AM
smercurio_fc
Guest
 
Default Re: Poor Curve Fitting issues

Can you upload your data, and the snippet of code that you did. It seems to me that this Origin program isn't doing a curve fit at all, but rather a tracing, which is something completely different.
Reply With Quote
  #3  
Old 07-08-2008, 07:40 PM
labmaster
Guest
 
Default ??: Re: Poor Curve Fitting issues

Thank you for the interesting.
 
Attachments are the demo data and my simple code in LV8.2.
(Code has a garbage for my various tryings such as derivative.)
 
The fitting was not changed according to weight and method in poly.vi.
 
The purpose of fitting is to get a base line of the graph.
The final target is to detect the position and shape (residual) of the small bumps in the graph.
(First and high order derivative was not helpful in my tryings.)???? 07-08-2008 06:33 PM? labmaster? ?? ?????


data_analysis.vi:
http://forums.ni.com/attachments/ni/...ta_analysis.vi


demo_data.txt:
http://forums.ni.com/attachments/ni/.../demo_data.txt
Reply With Quote
  #4  
Old 07-08-2008, 11:10 PM
labmaster
Guest
 
Default ??: Re: Poor Curve Fitting issues

I want to cancel my posting.
There was a scaling in a graph.
Reply With Quote
  #5  
Old 07-09-2008, 10:10 AM
smercurio_fc
Guest
 
Default Re: Poor Curve Fitting issues

OK. So presumably the LabVIEW curve-fitting worked for you then?
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:24 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.