DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

polynomial fit of the data

Hi,

I am trying to do a polynomial fit for some data, so far I have found the functions "ChnRegrXYCalc" and "ChnApprXYCalc" but I haven't found the way to choose the order of the polynomial fit. Is there a way to select the order of the polynomial fit?

 

Thanks,

Leo

0 Kudos
Message 1 of 7
(3,823 Views)

Hello Leillo,

 

There is a DIAdem ANALYSIS function that does multi-polynomial curve fitting. It's included in the Advanced and Professional Edition of DIAdem.

 

In the DIAdem ANALYSIS panel select "Curve Fitting" and then "Approximate"

 

Approx.png

 

In the dialog, select your polynomial, check the preview and then execute the function with "Calculate" or "OK".

 

Approx diag.png

 

Let me know if you have additional questions,

 

      Otmar

Otmar D. Foehner
0 Kudos
Message 2 of 7
(3,815 Views)

Hi Otmar,

Can you tell me how to translate that into VBS code? Is there a function where I can type the order I need to calculate the polynomial fit?

 

Thanks

0 Kudos
Message 3 of 7
(3,809 Views)
0 Kudos
Message 4 of 7
(3,805 Views)

Hi Leillo,

 

If you're in an ANSLYSIS dialog, you can always click on the <Help> button at the bottom right of the dialog.  This will pop up a Help page that talks about how to use the dialog-- not what you want.  BUT if you look all the way at the bottom of that Help page, you will see a link to the command or commands behind that dialog, and they WILL show you how to call that functionality with a VBScript.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 5 of 7
(3,763 Views)
Highlighted

How to fit a curve (polynomial) by forcing start and end point, from a given set of data points. 

 

 

 

0 Kudos
Message 6 of 7
(45 Views)

Hi rarun,

 

I've checked with R&D, and I'm sorry to report that the approximation function in the DIAdem ANALYSIS palette does not support fixing certain points in the analysis, so that the resulting fit is constrained/guaranteed to pass through those fixed points.

 

I don't have a suggestion for you,

Brad Turpin

Senior Technical Support Engineer

National Instruments

0 Kudos
Message 7 of 7
(22 Views)