2.2.1.2.12 NLFitSession::SetFunction
SetFunction
Description
Set fitting function.
Syntax
bool SetFunction(LPCSTR lpcszFuncName, LPCSTR lpcszCateName = NULL, int nMultiplicity = 1, bool bResetFunc = true, TreeNode& trInput = NULL, bool bLoadFDF = true, int nFunc = 0)
Parameters
- lpcszFuncName
- [input] the function name like Gauss. In Origin, F9 to open Fitting Function Organizer dialog, list all build-in fitting functions.
- lpcszCateName
- [input] default is NULL, this function will auto find its category.
- nMultiplicity
- [input] Only valid for the functions supported replica. Open FDF file of function, in Controls section if Duplicate Unit is not 0, then support replica.
Return
return ture if set function successfully.
Examples
EX1
Please refer to the example in NLFitSession::Fit
Remark
See Also
SetData , ParamsInitValues , Fit
Header to Include
Originlab\NLFitSession.h