Creates an one dimensional Linear Least Squares Regression (LLS) interpolation object.
You specify the X, Y and regression formula and a linear least squares regression will be conducted.
You can use the
InterpForValue1D() function to interpolate for unknown y values.
You can also use the
InterpLLSWeights() and
InterpLLSError() functions to view the fitted weights and errors respectively.
As an example, to fit a function of the form x^2-sin(x)+2, you would pass a single column, three rowed range of 'x^2' (first cell), '-sin(x)' (second cell), '2.0' (third cell) to the 'LLSFormula' parameter.
The left and right single quotes are optional.
They may be needed due to the fact that Excel sometimes translates the string into a formula, for example -sin(x).
You can use an unlimited number of rows to specify your LLS function.
References: 'Numerical Recipes in C', 2nd edition, Press, Teukolsky, Vetterling, Flannery.
This function creates an object and returns a string-key value to represent this created object.
The TAG value of the string-key returned (second part of the key) is : "LLSInterp1D"
The C# example below contains all the sub-function calls leading up to this function call. As a result, the example can contain a lot of code.
The VB.NET, J#, C++.NET, Java, Excel VBA, Visual Basic 6 (via COM) and C++ examples below contain function code stubs for the calls leading up to this function call. However, the function call for this function is displayed.
You can easily reproduce the stub functions code from the
C# example.
Copyright (c) 2003-2007 CapeTools - All Rights Reserved.