WeightedRegressionWeightedT(T, T, T, Boolean) Method |
Weighted Linear Regression using normal equations.
Namespace: Altaxo.Calc.LinearRegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static T[] Weighted<T>(
T[][] x,
T[] y,
T[] w,
bool intercept = false
)
where T : struct, new(), IEquatable<T>, IFormattable
Parameters
- x T
- Predictor matrix X
- y T
- Response vector Y
- w T
- Weight matrix W, usually diagonal with an entry for each predictor (row).
- intercept Boolean (Optional)
- True if an intercept should be added as first artificial predictor value. Default = false.
Type Parameters
- T
- The numeric element type.
Return Value
TThe fitted regression coefficients.
See Also