2.2.1.2.4 NLFitSession::GetFitResultsParams

Description

Get the parameter results after fitting done.

Syntax

int GetFitResultsParams(FitParameter* pFitParameter, RegStats *pstRegStats = NULL, int nDataset = 0, bool bIncDerivedParams = false)
int GetFitResultsParams(vector& vParams, vector& vErrors)

Parameters

pFitParameter
[output] array of the struct to receive the result of parameters. The number of items in this array is the number of parameters in fitting function.
Click FitParameter to see more details of this structure.
pstRegStats
[input] need DOF value in pstRegStats used to calculate P value of parameters. Can get this structure from GetFitResultsStats method.
Click RegStats to see more details of this structure.
nDataset
[input] data index.
bIncDerivedParams
[input] if include derived parameters.


vParams
[output] the vector for all parameter values
vErrors
[output] the vector for all parameter error values

Return

return the number of parameters if no error, else return -1.

Examples

EX1

Please refer to the example in NLFitSession::GetChiSqr

EX2

Please refer to the example in NLFitSession::SetParamValues

Remark

See Also

GetChiSqr, Fit, GetFitResultsStats

Header to Include

Originlab\NLFitSession.h