Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Constrained Polynomial Fit

Does anyone know how to implement the constraints for polynomial fitting.  The documentation is essentially useless.  The third overload is given as
 
0 Kudos
Message 1 of 2
(3,197 Views)
Hi Ross,

    I agree that the documentation provided with Measurement Studio for some of the analysis functions can at times be limited. That being said, if there was a detailed description of how every single analysis function worked we would have a help file to rival many mathematics textbooks! Smiley Wink

I looked up the documentation for the same function that is provided with LabVIEW, and found the following:

"Coefficient Constraint specifies the constraints on polynomial coefficients of certain orders by setting the coefficient of a specified order to coefficient. Use Coefficient Constraint if you know the exact values of certain polynomial coefficients. "

I take this to mean that, if you know a particular order's coefficient, then you can give the fit function that information to use. For example, let us say you are fitting data, but you know that the 4th order parameter (x^4) has a coefficient of 5, and the 6th order parameter (x^6) has a coefficient of 8 - or you want your fit to have those coefficients on those orders, regardless of if you know that as fact.

The specifiedOrder array would contain [4,6] and the specifiedCoefficients array would contain [5,8] - effectively assigning the x^4 parameter with a coefficient of 5 and the x^6 parameter with a coefficient of 8.

Hope this helps Ross, sorry for the confusion. If you'd like to see more documentation on a particular function in the future, always feel free to put in a suggestion at our Suggestion Center. R&D looks at customer suggestions often and the future releases of our products are highly influenced by those suggestions.

Have a good one Ross!

Dan Weiland - Applications Engineer - National Instruments
Dan Weiland
0 Kudos
Message 2 of 2
(3,185 Views)