Click or drag to resize

FitLinearCombination(Double, Double, DirectRegressionMethod, FuncDouble, Double) Method

Least-Squares fitting the points (x,y) to an arbitrary linear combination y : x -> p0*f0(x) + p1*f1(x) + ... + pk*fk(x), returning its best fitting parameters as [p0, p1, p2, ..., pk] array.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double[] LinearCombination(
	double[] x,
	double[] y,
	DirectRegressionMethod method,
	params Func<double, double>[] functions
)

Parameters

x  Double

[Missing <param name="x"/> documentation for "M:Altaxo.Calc.Fit.LinearCombination(System.Double[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{System.Double,System.Double}[])"]

y  Double

[Missing <param name="y"/> documentation for "M:Altaxo.Calc.Fit.LinearCombination(System.Double[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{System.Double,System.Double}[])"]

method  DirectRegressionMethod

[Missing <param name="method"/> documentation for "M:Altaxo.Calc.Fit.LinearCombination(System.Double[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{System.Double,System.Double}[])"]

functions  FuncDouble, Double

[Missing <param name="functions"/> documentation for "M:Altaxo.Calc.Fit.LinearCombination(System.Double[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{System.Double,System.Double}[])"]

Return Value

Double

[Missing <returns> documentation for "M:Altaxo.Calc.Fit.LinearCombination(System.Double[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{System.Double,System.Double}[])"]

See Also