Click or drag to resize

WeightedRegressionWeightedT(IEnumerableValueTupleT, T, T, Boolean) Method

Weighted Linear Regression using normal equations.

Namespace: Altaxo.Calc.LinearRegression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public 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

[Missing <typeparam name="T"/> documentation for "M:Altaxo.Calc.LinearRegression.WeightedRegression.Weighted``1(System.Collections.Generic.IEnumerable{System.ValueTuple{``0[],``0}},``0[],System.Boolean)"]

Return Value

T

[Missing <returns> documentation for "M:Altaxo.Calc.LinearRegression.WeightedRegression.Weighted``1(System.Collections.Generic.IEnumerable{System.ValueTuple{``0[],``0}},``0[],System.Boolean)"]

See Also