WeightedRegressionWeightedT(IEnumerableValueTupleT, 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>(
IEnumerable<(T[] , T )> samples,
T[] weights,
bool intercept = false
)
where T : struct, new(), IEquatable<T>, IFormattable
Parameters
- samples IEnumerableValueTupleT, T
- List of sample vectors (predictor) together with their response.
- weights T
- List of weights, one for each sample.
- 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