03-01-2008 01:05 PM
I am trying to do a polynomial curve fitting on a set of data. It does not do the fitting correctly for some reason.
I was just wondering to see where the problem is.
Attachment is the program.
Thanks
03-01-2008 01:57 PM - edited 03-01-2008 01:57 PM
Try "Givens" instead of "SVD", seems to work alright.
The main problem is the fact that your x-values a gigantic and cover a very small range (the difference between xmin and xmax is less than 0.03%!!!) This causes poor conditioning. If you would rescale the data to a more normal range (e.g. as in the attached image), the fit will be much more robust. 🙂
03-01-2008 02:38 PM - edited 03-01-2008 02:47 PM
altenbach wrote:
This causes poor conditioning.
Using your X array and setting up the matrix for a second order polynomial gives the following results:
03-02-2008 06:02 AM
Thank you for your reply.
Do you know how I can do some operations on the values of the polynomial coefficients which are obtained from the fitting? For example I need to find (-a2/2*a1) which is equivalent to the value of resonant frequency that I am looking for.
Thanks
03-02-2008 12:01 PM
03-03-2008 04:19 AM
Thanks
I could not found Logorithm function in the mathematics library, do you have any idea how I can take the logorithm of one of the element?
03-03-2008 04:44 AM
I was wondering to see how I can calculate the amount of time that each part of VI takes to get complete, for example I need to calculate the amount of time that the fitting function takes to do the fitting.
Which function does it?
03-03-2008 06:39 AM
Hi
I found the function which does it.
03-04-2008 04:29 AM
Hi
I was wondering to see how I calculate the amount of time that each function takes to complete.
Do you know which function does it?
Thanks
03-04-2008 09:44 AM
Maryam hosseini wrote:
I was wondering to see how I calculate the amount of time that each function takes to complete.