2.2.1.2.11 NLFitSession::SetData
SetData
Description
Set input data.
Syntax
bool SetData(const vector& vY, const vector& vX, const vector& vZ = NULL, int nIndex = 0, int nNumTotalDataset = 1, int nDataMode = INVALID_DATA_MODE, const vector& vW = NULL)
Parameters
- vY
- [input] Y data
- vX
- [input] X data
- vZ
- [input] if not NULL, Z data for XYZ input data.
- nIndex
- [input] the index of the current data
- nNumTotalDataset
- [input] the number of all input data
- nDataMode
- [input] default is INVALID_DATA_MODE, other useful data mode see DATA_MODE_* enum in analysis_utils.h. Origin Version: Origin 8.5.1.
- vW
- [input] the weighting data. Origin Version: Origin 8.5.1.
Return
return ture if set data successfully.
Examples
EX1
Please refer to the example in NLFitSession::SetParamValues
Remark
See Also
SetFunction , ParamsInitValues , Fit
Header to Include
Originlab\NLFitSession.h