Click or drag to resize

SimpleRegressionFit(IEnumerableValueTupleDouble, Double) Method

Least-Squares fitting the points (x,y) to a line y : x -> a+b*x, returning its best fitting parameters as (a, b) tuple, where a is the intercept and b the slope.

Namespace: Altaxo.Calc.LinearRegression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static (double A, double B) Fit(
	IEnumerable<(double , double )> samples
)

Parameters

samples  IEnumerableValueTupleDouble, Double
Predictor-Response samples as tuples

Return Value

ValueTupleDouble, Double

[Missing <returns> documentation for "M:Altaxo.Calc.LinearRegression.SimpleRegression.Fit(System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}})"]

See Also