LinearFitBySvdCalculate Method |
Fits a data set linearly to a given design matrix.
Namespace: Altaxo.Calc.RegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic LinearFitBySvd Calculate(
IROMatrix<double> xbase,
IReadOnlyList<double> yarr,
IReadOnlyList<double>? stddev,
int numberOfData,
int numberOfParameter,
double threshold
)
Parameters
- xbase IROMatrixDouble
- The matrix of x base values of the data set. Dimensions: numberOfData x numberOfParameters. The matrix is changed during the calculation!
- yarr IReadOnlyListDouble
- The array of y values of the data set.
- stddev IReadOnlyListDouble
- The array of y standard deviations of the data set. Can be null if the standard deviation is unkown.
- numberOfData Int32
- The number of data points (may be smaller than the array sizes of the data arrays).
- numberOfParameter Int32
- The number of parameters to fit == size of the function base.
- threshold Double
- A treshold value (usually 1E-5) used to chop the unimportant singular values away.
Return Value
LinearFitBySvdThe linear fit result calculated by singular value decomposition.
See Also