CLsqFit:GetBasisFunc
The GetBasisFunc method returns the name of the basis function which is either the default "polynomial" or is specified using the SetBasisFunc method.
sName = CLsqFit:GetBasisFunc() |
sName is a string that identifies the basis function in use. See Remarks.
This function returns a string with the following values:
"polynomial" |
The built-in (default) n-dimensional polynomial basis function. |
"hyperplane" |
The built-in hyperplane basis function. |
sFuncName |
The string name of a user-defined basis function declared in the script. |
The following script retrieves the name of the basis function in use. In this example, no function is registered using SetBasisFunc, so the built-in n-dimensional polynomial is used by default.
|
-- create a CLsqFit object |
|
-- no function declared, n-Dimensional polynomial (1) used. |
|
-- fetch the name of the basis function |
|
-- result: Func= 'polynomial' (the default basis function) |
The next example defines a basis function in the script and registers it, The name of the basis function is then fetched and listed.
|
-- declare a basis function to fit a line |
|
|
|
|
|
|
|
|
|
-- end of basis function |
|
|
|
-- create a CLsqFit object |
|
-- register the basis function |
|
-- fetch the name of the basis function |
|
-- result: Func= 'MyFunc' |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.