NLFitComputeCovariances Method |
Computes parameter covariances at a given parameter set.
Namespace: Altaxo.Calc.RegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static int ComputeCovariances(
NLFitLMFunction fcn,
double[] x,
int n,
int m,
double[] covar,
out double sumchisq,
out double sigmasq
)
Parameters
- fcn NLFitLMFunction
- The function to minimize.
- x Double
- Parameter vector.
- n Int32
- The number of observations (function values).
- m Int32
- The number of parameters (variables).
- covar Double
- Array to hold the covariance matrix. Must be of dimension m*m (column-major).
- sumchisq Double
- On output, receives the sum of chi-squared values (sum of squared residuals).
- sigmasq Double
- On output, receives sigma squared (estimated variance factor).
Return Value
Int32The rank of the approximate Hessian if successful; otherwise 0.
See Also